Skip to content

Commit

Permalink
docs: Added reminder for menu import to rendition menu docs (#1003)
Browse files Browse the repository at this point in the history
I did not just lose 4 hours of my life trying to find out why the
rendition menu wasn't working 🥲

To prevent someone else from making the same mistake, I added this
warning. Copied it from other menu pages that already included this
warning, which I only encountered after reverse engineering how the menu
works myself 😅

Hope it's helpful to at least one person out there!
  • Loading branch information
JeroenReumkens authored Oct 8, 2024
1 parent 4c6298f commit ed9b18a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/pages/docs/en/components/media-rendition-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ import SandpackContainer from "../../../../components/SandpackContainer.astro";

A menu for video renditions (qualities).

> Remember to add the seperate menu module for the menu components.
```js
import "media-chrome";
import "media-chrome/menu";
```

### Default usage

<SandpackContainer
Expand Down

0 comments on commit ed9b18a

Please sign in to comment.