Buttons
Play Button
This component is used to play and pause media.
Usage
The <media-play-button>
component will toggle the paused
state of media as it's pressed by dispatching a media-play-request
, and media-pause-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 a custom play and pause icon:
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
<-
Toggle Button
Next
Mute Button
->