Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more types to <whereby-embed> web component #198

Merged

Conversation

havardholvik
Copy link
Collaborator

Description

When used in React context, you are now able to get a typed ref when using the web component. The typed ref allows you to listen to and handle events with type safety, and also issue commands in a type-safe manner.

Testing

Try the modified Storybook story

@havardholvik havardholvik requested a review from a team January 23, 2024 14:55
@havardholvik havardholvik force-pushed the havard/pan-752-fix-embed-element-typings-to-support-refs branch from 62954c3 to dfd7252 Compare January 24, 2024 08:11
src/stories/prebuilt-ui.stories.tsx Outdated Show resolved Hide resolved
When used in React context, you are now able to get a typed ref when
using the web component. The typed ref allows you to listen to and
handle events with type safety, and also issue commands in a type-safe
manner.
@havardholvik havardholvik force-pushed the havard/pan-752-fix-embed-element-typings-to-support-refs branch from dfd7252 to bba3a9a Compare January 25, 2024 07:33
@havardholvik havardholvik merged commit e783a88 into main Jan 25, 2024
2 checks passed
@havardholvik havardholvik deleted the havard/pan-752-fix-embed-element-typings-to-support-refs branch January 25, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants