PlayButton
A button component for playing and pausing media playback
Anatomy
<PlayButton /><media-play-button></media-play-button>API reference
Props
| Prop | Type | Default | |
|---|---|---|---|
disabled | boolean | false | |
| |||
label | string | function | '' | |
| |||
State
State is accessible via the
render, className, and style props.
State is reflected as data attributes for CSS styling.
| Property | Type | |
|---|---|---|
paused | boolean | |
| ||
ended | boolean | |
| ||
started | boolean | |
| ||
Data attributes
| Attribute | Description |
|---|---|
data-paused | Present when the media is paused. |
data-ended | Present when the media has ended. |
data-started | Present when playback has started. |