43 Pro components and page blocks

Get Pro

Tick Nav

Preview

Customize

Fine ticks4
Tick gap9px
Magnify1.00
Accent

Usage

import { TickNav } from "@/components/uibrik/tick-nav/tick-nav";

<TickNav items={items} />

Installation

npx shadcn@latest add https://uibrik.com/r/tick-nav.json
Adds the files to components/uibrik/tick-nav and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/tick-nav.

Props

TickNav
minorTicks
Type number
4
Fine ticks between items.
tickGap
Type number
9
Space between neighbouring ticks; rows grow to fit.
magnify
Type number
1
How far the ticks swell under the pointer. 0 turns it off.
accent
Type string
""
Colour for the selected item. Empty uses the text colour.
itemsrequired
Type (string | { label; href? })[]
–
The sections. Items with href render as links.
value / onValueChange
Type number / (index) => void
–
Selected index, controlled.
defaultValue
Type number
0
Selected index at first, when uncontrolled.
label
Type string
"Sections"
Accessible name for the list.
className
Type string
–
Classes for the nav.