Skip to content
PixiKit

Tick Rail

A numbered index with marker lines: entries near the pointer slide out, lengthen their line and take the accent color in a soft wave, and the picked one stays out.

pixikit.com/docs/components/tick-rail

Customize

Accent color
Text color
Marker color
Show index
Show marker
Proximity radius100px
Max shift30px
Falloff
Marker length60px
Marker gap0px
Tick scale0.50
Scale tick
Item gap20px
Font size1.10rem
Smoothing100ms

Props

19
NameTypeDefaultDescription
itemsstring[]DEFAULT_ITEMSLabels rendered as the list of sidebar entries.
accentColorstring"#A855F7"Color items and markers shift toward as the cursor gets close.
textColorstring"var(--muted-foreground)"Resting color of the item labels.
markerColorstring"color-mix(in srgb, var(--muted-foreground) 55%, transparent)"Resting color of the leading marker lines.
showIndexbooleantrueShow the zero-padded index before each label.
showMarkerbooleantrueShow the marker lines and short ticks beside each item.
proximityRadiusnumber100Vertical distance in pixels within which the cursor influences an item.
maxShiftnumber30Maximum horizontal shift in pixels the label slides at full proximity.
falloff"linear" | "smooth" | "sharp""smooth"Curve mapping cursor distance to the proximity effect.
markerLengthnumber60Length in pixels of the marker line; the in-between ticks scale from this too.
markerGapnumber0Gap in pixels between the labels and the markers.
tickScalenumber0.5Length of the in-between ticks as a fraction of markerLength.
scaleTickbooleantrueWhen true, the in-between ticks also grow with cursor proximity.
itemGapnumber20Vertical gap between items in pixels.
fontSizenumber1.1Font size of the labels in rem.
smoothingnumber100Transition duration in milliseconds for the proximity response.
defaultActivenumber | nullnullIndex of the item selected on mount.
onItemClick(index: number, label: string) => voidNoneCalled when an item is clicked; the clicked item also becomes active.
classNamestring""

More navigation components in Pro

View all

Related