More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | { label: string; href?: string; icon?: ReactNode }[] | The navigation items. Items without an href render as buttons. | |
initialActiveIndex | Which item starts selected. | ||
activeIndex | Controls the selected item yourself. Use it together with onChange. | ||
onChange | (index: number, item) => void | Called when an item is selected. | |
theme | 'dark' | 'light' | 'dark' | Color theme of the frame and text. |
color | Color of the active pill. Uses a high-contrast color for the theme when not set. | ||
activeTextColor | Text color inside the pill. Picked automatically from the pill color when not set. | ||
colors | string[] | [] | Colors for the droplets. They blend as they merge. Uses the pill color when empty. |
size | 'sm' | 'md' | 'lg' | 'md' | Size of the items. |
frame | Shows the frosted panel around the items. | ||
animationTime | 600 | Roughly how long the droplets take to travel to the new item, in ms. | |
particleCount | 15 | How many droplets the pill breaks into when an item is selected. | |
spread | 56 | How far the droplets scatter on their way to the new item, in px. | |
timeVariance | 300 | Random variation in each droplet’s timing, in ms. | |
gooeyness | 0.5 | How readily the droplets and pills melt together, from 0 to 1. | |
wobble | 0.5 | How much the new pill wobbles as it forms, from 0 to 1. | |
hoverEffect | Shows a soft highlight behind the hovered item. | ||
| Extra class names for the nav. | |||
| Inline styles for the nav. |
items{ label: string; href?: string; icon?: ReactNode }[]The navigation items. Items without an href render as buttons.
initialActiveIndexnumberWhich item starts selected.
activeIndexnumberControls the selected item yourself. Use it together with onChange.
onChange(index: number, item) => voidCalled when an item is selected.
theme'dark' | 'light'Color theme of the frame and text.
'dark'colorstringColor of the active pill. Uses a high-contrast color for the theme when not set.
activeTextColorstringText color inside the pill. Picked automatically from the pill color when not set.
colorsstring[]Colors for the droplets. They blend as they merge. Uses the pill color when empty.
[]size'sm' | 'md' | 'lg'Size of the items.
'md'framebooleanShows the frosted panel around the items.
animationTimenumberRoughly how long the droplets take to travel to the new item, in ms.
600particleCountnumberHow many droplets the pill breaks into when an item is selected.
15spreadnumberHow far the droplets scatter on their way to the new item, in px.
56timeVariancenumberRandom variation in each droplet’s timing, in ms.
300gooeynessnumberHow readily the droplets and pills melt together, from 0 to 1.
0.5wobblenumberHow much the new pill wobbles as it forms, from 0 to 1.
0.5hoverEffectbooleanShows a soft highlight behind the hovered item.
Extra class names for the nav.
Inline styles for the nav.



