Components
Kickflip
Flip the board 360° along its long axis
Heelflip
Flip the board 360° along its long axis in the opposite direction of a kickflip
360 Varial McTwist
A 540° inverted aerial with a 360° board rotation
The 900
Legendary 900° aerial rotation pioneered by Tony Hawk
Installation
Installation with shadcn/ui
CLI
Manual
Install the following dependencies:
Copy and paste the following code into your project.
Layout
Import the parts, and compose them together.
Examples
Horizontal Orientation
Set orientation="horizontal"
to create a horizontally navigable list.
Kickflip
Flip the board 360° along its long axis
Heelflip
Flip the board 360° along its long axis in the opposite direction of a kickflip
The 900
Legendary 900° aerial rotation pioneered by Tony Hawk
Grid Layout
For grid layouts, use orientation="mixed"
to enable navigation in both directions.
Use CSS Grid to arrange the items in a grid structure. In grid layouts,
arrow keys will navigate accordingly:
- Up/Down: Navigates within a column
- Left/Right: Navigates within a row
Kickflip
Flip the board 360° along its long axis
Heelflip
Flip the board 360° along its long axis in the opposite direction of a kickflip
Tre Flip
Flip the board 360° along its long axis in the opposite direction of a kickflip
FS 540
Flip the board 540° along its long axis
360 Varial McTwist
A 540° inverted aerial with a 360° board rotation
The 900
Legendary 900° aerial rotation pioneered by Tony Hawk
Grouped Items
Group items together to create a list of related options.
Basic Tricks
KickflipFlip the board 360° along its long axis
HeelflipFlip the board 360° along its long axis in the opposite direction
Advanced Tricks
Varial McTwistA 540° inverted aerial with a board rotation
The 900Legendary 900° aerial rotation pioneered by Tony Hawk
API Reference
Root
The root component for creating listboxes.
Prop | Type | Default |
---|---|---|
defaultValue? | Value<Multiple> | - |
value? | Value<Multiple> | - |
onValueChange? | (value: Value<Multiple>) => void | - |
asChild? | boolean | - |
disabled? | boolean | - |
loop? | boolean | - |
multiple? | Multiple | - |
virtual? | boolean | - |
orientation? | "horizontal" | "vertical" | "mixed" | - |
name? | string | - |
Group
A group of items inside the selectable list.
Prop | Type | Default |
---|---|---|
asChild? | boolean | - |
GroupLabel
A label for the group of items.
Prop | Type | Default |
---|---|---|
asChild? | boolean | - |
Item
An item inside the selectable list.
Prop | Type | Default |
---|---|---|
onSelect? | (value: string) => void | - |
value | string | - |
disabled? | boolean | - |
asChild? | boolean | - |
ItemIndicator
A visual indicator that shows when the item is selected.
Prop | Type | Default |
---|---|---|
forceMount? | boolean | - |
asChild? | boolean | - |
Accessibility
Keyboard Interactions
Key | Description |
---|---|
Tab | Focuses the last active item in the list. |
Shift + Tab | Moves focus to previous focusable item in the list. |
ArrowUp | Moves highlighting to previous item in vertical lists. |
ArrowDown | Moves highlighting to next item in vertical lists. |
ArrowLeft | Moves highlighting to previous item in horizontal lists. |
ArrowRight | Moves highlighting to next item in horizontal lists. |