Buttons
Mute Button
This component is used to mute and unmute media.
Usage
The <media-mute-button>
component will toggle the muted
state of media as it's pressed by dispatching a media-mute-request
, and media-unmute-request
event to the player.
Key Shortcuts
Keyboard shortcuts can be specified either through the global key shortcuts config, or on the component like so:
👉 See the aria-keyshortcuts
docs for more information.
Custom Icons
Here's an example containing custom muted and volume icons:
Tooltips
Tooltips can be provided like so:
Styling
You can override the default styles with CSS like so:
Focus
Tailwind
The following is a headless example using Tailwind:
Tooltips
The following extends the example above with tooltips:
Previous
<-
Play Button
Next
Fullscreen Button
->