SeekButton seeks the media by a configurable number of seconds. Positive values seek forward, negative values seek backward. The seek is clamped to media bounds (0 to duration).
Requires the
time feature to be registered with the player.Import
Basic Usage
Custom Render
Props
Number of seconds to seek. Positive values seek forward, negative values seek backward. Defaults to
30.Custom render prop. Receives the computed HTML props and current state.
Override the automatic
aria-label. By default: "Seek forward 30 seconds" or "Seek backward 10 seconds".Disables the button.
CSS class name or a function that receives state and returns a class name.
Inline style or a function that receives state and returns a style object.
State Data Attributes
| Attribute | Value / Description |
|---|---|
data-direction | "forward" | "backward" — seek direction derived from the seconds prop. |
data-seconds | The configured seek amount in seconds. |
Accessibility
Renders a<button> element. The aria-label is automatically set to describe the action, e.g. "Seek forward 30 seconds" or "Seek backward 10 seconds". Override with the label prop. Keyboard activation: Enter / Space.