MuteButton
A button component for muting and unmuting audio playback
Anatomy
<MuteButton /><media-mute-button></media-mute-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 | |
|---|---|---|
muted | boolean | |
| ||
volumeLevel | 'off' | 'low' | 'medium' | 'high' | |
| ||
Data attributes
| Attribute | Description |
|---|---|
data-muted | Present when the media is muted. |
data-volume-level | Indicates the volume level. |