Time Scrubber
A timeline you scrub with the pointer or the keys, reading the exact moment under the cursor. Good for backups, history and video.
pixikit.com/docs/components/time-scrubber
Customize
Markers30
Auto sweep
Accent color
Width640px
Height36px
Font size14px
Props
14| Name | Type | Default | Description |
|---|---|---|---|
start | Date | number | 0 | The window's first moment. |
end | Date | number | 2592000000 | The window's last moment; the default label counts back from it. |
value | Date | number | None | The moment under the cursor, for a controlled scrubber. |
defaultValue | Date | number | None | The starting moment when uncontrolled. Defaults to three quarters along. |
onValueChange | (value: Date) => void | None | Called with each moment the cursor moves to. |
markers | number | Date[] | 30 | Tick marks under the track: how many, evenly spread, or the moments to mark. |
formatLabel | (date: Date) => string | None | The label above the cursor. Defaults to how long before `end`, e.g. "6 d 14 h ago". |
autoSweep | boolean | false | While nobody is using it, the cursor sweeps slowly back and forth. |
accentColor | string | "#7c3aed" | The cursor, its glow and the striped band. |
ariaLabel | string | "Time" | What screen readers announce for the slider. |
width | number | 640 | The widest it gets, in pixels; it shrinks to fit a narrow container. |
height | number | 36 | The striped track's height, in pixels; the cursor grows with it. |
fontSize | number | 14 | The size of the label above the cursor, in pixels. |
className | string | None |