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| Name | Type | Default | Description |
|---|---|---|---|
items | string[] | DEFAULT_ITEMS | Labels rendered as the list of sidebar entries. |
accentColor | string | "#A855F7" | Color items and markers shift toward as the cursor gets close. |
textColor | string | "var(--muted-foreground)" | Resting color of the item labels. |
markerColor | string | "color-mix(in srgb, var(--muted-foreground) 55%, transparent)" | Resting color of the leading marker lines. |
showIndex | boolean | true | Show the zero-padded index before each label. |
showMarker | boolean | true | Show the marker lines and short ticks beside each item. |
proximityRadius | number | 100 | Vertical distance in pixels within which the cursor influences an item. |
maxShift | number | 30 | Maximum horizontal shift in pixels the label slides at full proximity. |
falloff | "linear" | "smooth" | "sharp" | "smooth" | Curve mapping cursor distance to the proximity effect. |
markerLength | number | 60 | Length in pixels of the marker line; the in-between ticks scale from this too. |
markerGap | number | 0 | Gap in pixels between the labels and the markers. |
tickScale | number | 0.5 | Length of the in-between ticks as a fraction of markerLength. |
scaleTick | boolean | true | When true, the in-between ticks also grow with cursor proximity. |
itemGap | number | 20 | Vertical gap between items in pixels. |
fontSize | number | 1.1 | Font size of the labels in rem. |
smoothing | number | 100 | Transition duration in milliseconds for the proximity response. |
defaultActive | number | null | null | Index of the item selected on mount. |
onItemClick | (index: number, label: string) => void | None | Called when an item is clicked; the clicked item also becomes active. |
className | string | "" |