More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | string[] | [...] | 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. | |
showIndex | Show the zero-padded index before each label. | ||
showMarker | Show the marker lines (and short ticks) beside each item. | ||
proximityRadius | 100 | Vertical distance in pixels within which the cursor influences an item. | |
maxShift | 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 | 60 | Length in pixels of the marker line; the in-between ticks scale from this too. | |
markerGap | Gap in pixels between the labels and the markers. | ||
tickScale | 0.5 | Length of the in-between ticks as a fraction of markerLength. | |
scaleTick | When true, the in-between ticks also grow with cursor proximity. | ||
itemGap | 20 | Vertical gap between items in pixels. | |
fontSize | 1.1 | Font size of the labels in rem. | |
smoothing | 100 | Transition duration in milliseconds for the proximity response. | |
defaultActive | number | null | null | Index of the item selected on mount. |
onItemClick | (index, label) => void | Called 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.
[...]accentColorstringColor items and markers shift toward as the cursor gets close.
"#A855F7"textColorstringResting color of the item labels.
"#c4c4c4"markerColorstringResting color of the leading marker lines.
"#6c6c6c"showIndexbooleanShow the zero-padded index before each label.
showMarkerbooleanShow the marker lines (and short ticks) beside each item.
proximityRadiusnumberVertical distance in pixels within which the cursor influences an item.
100maxShiftnumberMaximum horizontal shift in pixels the label slides at full proximity.
30falloff"linear" | "smooth" | "sharp"Curve mapping cursor distance to the proximity effect.
"smooth"markerLengthnumberLength in pixels of the marker line; the in-between ticks scale from this too.
60markerGapnumberGap in pixels between the labels and the markers.
tickScalenumberLength of the in-between ticks as a fraction of markerLength.
0.5scaleTickbooleanWhen true, the in-between ticks also grow with cursor proximity.
itemGapnumberVertical gap between items in pixels.
20fontSizenumberFont size of the labels in rem.
1.1smoothingnumberTransition duration in milliseconds for the proximity response.
100defaultActivenumber | nullIndex of the item selected on mount.
nullonItemClick(index, label) => voidCalled when an item is clicked; the clicked item also becomes active.
Additional CSS classes for the outer wrapper.
""


