Custom component for element/custom element #505
-
Hello, great library and defaults 😄 Is there a way to customize component used to render an element, or the proper way to add custom elements with this library? My use case is to add more embed options such as Twitter, Youtube, etc, other than the default Vimeo embed. Additionally, I would like to remove the additional box under the Vimeo video frame (as shown in example). To achieve this, can I either: make a component to render Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You can use the |
Beta Was this translation helpful? Give feedback.
-
Sorry if I missed it on the codepen, but I can't find the |
Beta Was this translation helpful? Give feedback.
-
Options are documented here, you also have documented options in this api. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answers, @zbeyens ! 😀 I've looked on the example in the codebase (storybook examples and default plugins) and decided to make my own plugin for the social embed custom element instead of changing the |
Beta Was this translation helpful? Give feedback.
You can use the
component
option to replace the default component. Sandbox