-
I don't know if this matters as web components just work in React now, but the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
we decided to put them in a separate import since version 3 or 4 because they add some 10-20kB gzip or so. import {
MediaSettingsMenu,
MediaSettingsMenuButton,
MediaSettingsMenuItem,
MediaCaptionsMenu,
MediaPlaybackRateMenu,
} from "media-chrome/dist/react/menu"; (seems something is up with the import path, without the I quickly put together a Codesandbox https://codesandbox.io/p/sandbox/media-chrome-settings-menu-react-ks8cyw?file=%2Fsrc%2FApp.tsx hope this helps and thanks for the shoutout on Syntax!! ❤ |
Beta Was this translation helpful? Give feedback.
-
awesome thanks a ton! Might be worth adding to the docs? |
Beta Was this translation helpful? Give feedback.
-
In case anyone is reading this - the exports are available at |
Beta Was this translation helpful? Give feedback.
we decided to put them in a separate import since version 3 or 4 because they add some 10-20kB gzip or so.
(seems something is up with the import path, without the
dist
it was complaining)I quickly put together a Codesandbox https://codesandbox.io/p/sandbox/media-chrome-settings-menu-react-ks8cyw?file=%2Fsrc%2FApp.tsx
hope this helps and thanks for the shoutout on Syntax!! ❤