ef-toggle-play
A click on this element toggles between play and pause.
A click on this element toggles between play and pause.
Attributes
| Attribute | React prop | Type | Default | Description |
|---|---|---|---|---|
target | target | string | "" | ID of the target element this component controls or reads from. |
Slots
| Slot | Description |
|---|---|
pause | Shown while the target plays. Click the target to pause it. |
play | Shown while playback is paused. Click the target to start playback. |
CSS Parts
| Part | Description |
|---|---|
button | The click target that contains the slotted `play` and `pause` content. |