durationrequired Total length of the timeline, in seconds. | number | — |
valuerequired Where the playhead is, in seconds. | number | — |
onChangerequired Called as the playhead is dragged or the track is clicked. | (time: number) => void | — |
tracks The lanes under the playhead, each with its own blocks. | ScrubberTrack[] | [] |
selected Id of the currently selected block. | string•null | null |
onSelect Called when a block is selected, or with null when it is deselected. | (blockId: string | null) => void | — |
onBlockChange Called when a block is moved or resized, with its new start and end. | (trackId: string, blockId: string, next: { start: number; end: number }) => void | — |
onGestureStart Called once when a drag begins — the place to pause playback. | () => void | — |
onBlockContextMenu Right-click on a block, with the event and what was hit. | (event: React.MouseEvent, trackId: string, blockId: string) => void | — |
showTime Show the current time next to the playhead. | boolean | true |
formatTime Turn seconds into the label shown. Defaults to m:ss. | (time: number) => string | defaultFormatTime |
step Snap the playhead to this interval, in seconds. | number | — |
ariaLabel Label for the playhead handle. | string | Seek |
| …and every FlexProps prop | inherited | — |