Proximity Radius
100px
Max Shift
30px
Marker Length
60px
Marker Gap
0px
Tick Scale
0.5
Item Gap
20px
Font Size
1.1rem
Smoothing
100ms

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
19 properties
itemsstring[][...]Labels rendered as the list of sidebar entries.
accentColor"#A855F7"Color items and markers shift toward as the cursor gets close.
textColor"#c4c4c4"Resting color of the item labels.
markerColor"#6c6c6c"Resting color of the leading marker lines.
showIndexShow the zero-padded index before each label.
showMarkerShow the marker lines (and short ticks) beside each item.
proximityRadius100Vertical distance in pixels within which the cursor influences an item.
maxShift30Maximum horizontal shift in pixels the label slides at full proximity.
falloff"linear" | "smooth" | "sharp""smooth"Curve mapping cursor distance to the proximity effect.
markerLength60Length in pixels of the marker line; the in-between ticks scale from this too.
markerGapGap in pixels between the labels and the markers.
tickScale0.5Length of the in-between ticks as a fraction of markerLength.
scaleTickWhen true, the in-between ticks also grow with cursor proximity.
itemGap20Vertical gap between items in pixels.
fontSize1.1Font size of the labels in rem.
smoothing100Transition duration in milliseconds for the proximity response.
defaultActivenumber | nullnullIndex of the item selected on mount.
onItemClick(index, label) => voidCalled when an item is clicked; the clicked item also becomes active.
""Additional CSS classes for the outer wrapper.
itemsstring[]

Labels rendered as the list of sidebar entries.

Default[...]
accentColorstring

Color items and markers shift toward as the cursor gets close.

Default"#A855F7"
textColorstring

Resting color of the item labels.

Default"#c4c4c4"
markerColorstring

Resting color of the leading marker lines.

Default"#6c6c6c"
showIndexboolean

Show the zero-padded index before each label.

showMarkerboolean

Show the marker lines (and short ticks) beside each item.

proximityRadiusnumber

Vertical distance in pixels within which the cursor influences an item.

Default100
maxShiftnumber

Maximum horizontal shift in pixels the label slides at full proximity.

Default30
falloff"linear" | "smooth" | "sharp"

Curve mapping cursor distance to the proximity effect.

Default"smooth"
markerLengthnumber

Length in pixels of the marker line; the in-between ticks scale from this too.

Default60
markerGapnumber

Gap in pixels between the labels and the markers.

tickScalenumber

Length of the in-between ticks as a fraction of markerLength.

Default0.5
scaleTickboolean

When true, the in-between ticks also grow with cursor proximity.

itemGapnumber

Vertical gap between items in pixels.

Default20
fontSizenumber

Font size of the labels in rem.

Default1.1
smoothingnumber

Transition duration in milliseconds for the proximity response.

Default100
defaultActivenumber | null

Index of the item selected on mount.

Defaultnull
onItemClick(index, label) => void

Called when an item is clicked; the clicked item also becomes active.

Additional CSS classes for the outer wrapper.

Default""