Goo Tabs
A pill nav whose active pill breaks into droplets that fly to the picked item and melt back into a wobbling pill.
pixikit.com/docs/components/goo-tabs
Customize
Initial active index0
Theme
Color
Colors0 of 10
Size
Frame
Animation time600ms
Particle count15
Spread56px
Time variance300ms
Gooeyness0.50
Wobble0.50
Hover effect
Props
19| Name | Type | Default | Description |
|---|---|---|---|
items | GooTabsItem[] | DEFAULT_ITEMS | The navigation items: `{ label, href, icon }`. Items without an href render as buttons. |
initialActiveIndex | number | 0 | Which item starts selected. |
activeIndex | number | None | Controls the selected item yourself. Use it together with onChange. |
onChange | (index: number, item: GooTabsItem) => void | None | Called when an item is selected. |
theme | "dark" | "light" | "dark" | Color theme of the frame and text. |
color | string | None | Color of the active pill. Uses a high-contrast color for the theme when not set. |
activeTextColor | string | None | 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 | boolean | true | Shows the frosted panel around the items. |
animationTime | number | 600 | Roughly how long the droplets take to travel to the new item, in ms. |
particleCount | number | 15 | How many droplets the pill breaks into when an item is selected. |
spread | number | 56 | How far the droplets scatter on their way to the new item, in px. |
timeVariance | number | 300 | Random variation in each droplet's timing, in ms. |
gooeyness | number | 0.5 | How readily the droplets and pills melt together, from 0 to 1. |
wobble | number | 0.5 | How much the new pill wobbles as it forms, from 0 to 1. |
hoverEffect | boolean | true | Shows a soft highlight behind the hovered item. |
className | string | "" | |
style | CSSProperties | None |