Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsGooTabsItem[]DEFAULT_ITEMSThe navigation items: `{ label, href, icon }`. Items without an href render as buttons.
initialActiveIndexnumber0Which item starts selected.
activeIndexnumberNoneControls the selected item yourself. Use it together with onChange.
onChange(index: number, item: GooTabsItem) => voidNoneCalled when an item is selected.
theme"dark" | "light""dark"Color theme of the frame and text.
colorstringNoneColor of the active pill. Uses a high-contrast color for the theme when not set.
activeTextColorstringNoneText 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.
framebooleantrueShows the frosted panel around the items.
animationTimenumber600Roughly how long the droplets take to travel to the new item, in ms.
particleCountnumber15How many droplets the pill breaks into when an item is selected.
spreadnumber56How far the droplets scatter on their way to the new item, in px.
timeVariancenumber300Random variation in each droplet's timing, in ms.
gooeynessnumber0.5How readily the droplets and pills melt together, from 0 to 1.
wobblenumber0.5How much the new pill wobbles as it forms, from 0 to 1.
hoverEffectbooleantrueShows a soft highlight behind the hovered item.
classNamestring""
styleCSSPropertiesNone

More navigation components in Pro

View all

Related