Particle Count
15
Spread
56px
Animation Time
600ms
Time Variance
300ms
Gooeyness
0.5
Wobble
0.5

More components in Pro

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

View all 255
19 properties
items{ label: string; href?: string; icon?: ReactNode }[]The navigation items. Items without an href render as buttons.
initialActiveIndexWhich item starts selected.
activeIndexControls the selected item yourself. Use it together with onChange.
onChange(index: number, item) => voidCalled when an item is selected.
theme'dark' | 'light''dark'Color theme of the frame and text.
colorColor of the active pill. Uses a high-contrast color for the theme when not set.
activeTextColorText 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''md'Size of the items.
frameShows the frosted panel around the items.
animationTime600Roughly how long the droplets take to travel to the new item, in ms.
particleCount15How many droplets the pill breaks into when an item is selected.
spread56How far the droplets scatter on their way to the new item, in px.
timeVariance300Random variation in each droplet’s timing, in ms.
gooeyness0.5How readily the droplets and pills melt together, from 0 to 1.
wobble0.5How much the new pill wobbles as it forms, from 0 to 1.
hoverEffectShows 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.

initialActiveIndexnumber

Which item starts selected.

activeIndexnumber

Controls the selected item yourself. Use it together with onChange.

onChange(index: number, item) => void

Called when an item is selected.

theme'dark' | 'light'

Color theme of the frame and text.

Default'dark'
colorstring

Color of the active pill. Uses a high-contrast color for the theme when not set.

activeTextColorstring

Text 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.

Default[]
size'sm' | 'md' | 'lg'

Size of the items.

Default'md'
frameboolean

Shows the frosted panel around the items.

animationTimenumber

Roughly how long the droplets take to travel to the new item, in ms.

Default600
particleCountnumber

How many droplets the pill breaks into when an item is selected.

Default15
spreadnumber

How far the droplets scatter on their way to the new item, in px.

Default56
timeVariancenumber

Random variation in each droplet’s timing, in ms.

Default300
gooeynessnumber

How readily the droplets and pills melt together, from 0 to 1.

Default0.5
wobblenumber

How much the new pill wobbles as it forms, from 0 to 1.

Default0.5
hoverEffectboolean

Shows a soft highlight behind the hovered item.

Extra class names for the nav.

Inline styles for the nav.