MuteButton
A button component for muting and unmuting audio playback
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 | Description |
|---|---|---|
muted | boolean | Whether audio is muted. |
volumeLevel | VolumeLevel | Derived volume level:
|
Data Attributes
| Attribute | Description |
|---|---|
data-muted | Present when the media is muted. |
data-volume-level | Indicates the volume level. |