Skip to content
PixiKit

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
NameTypeDefaultDescription
startDate | number0The window's first moment.
endDate | number2592000000The window's last moment; the default label counts back from it.
valueDate | numberNoneThe moment under the cursor, for a controlled scrubber.
defaultValueDate | numberNoneThe starting moment when uncontrolled. Defaults to three quarters along.
onValueChange(value: Date) => voidNoneCalled with each moment the cursor moves to.
markersnumber | Date[]30Tick marks under the track: how many, evenly spread, or the moments to mark.
formatLabel(date: Date) => stringNoneThe label above the cursor. Defaults to how long before `end`, e.g. "6 d 14 h ago".
autoSweepbooleanfalseWhile nobody is using it, the cursor sweeps slowly back and forth.
accentColorstring"#7c3aed"The cursor, its glow and the striped band.
ariaLabelstring"Time"What screen readers announce for the slider.
widthnumber640The widest it gets, in pixels; it shrinks to fit a narrow container.
heightnumber36The striped track's height, in pixels; the cursor grows with it.
fontSizenumber14The size of the label above the cursor, in pixels.
classNamestringNone

More data components in Pro

View all

Related