Component packs › Liquid Glass › Glass Dock
The active tab is a drop of liquid that stretches toward your tap, leaves a trailing drop and wobbles into place.
Glass Dock is a navigation from Liquid Glass, a component pack with 6 components: Glass that refracts, pours and ripples. Price: $2 for the whole pack.
Built with: goo merge, two-spring stretch, keyboard tabs.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
items | DockItem[] | ||
value | number | ||
label | string | ||
onChange | (index: number) => void | ||
autoplay | number | false | Showcase mode: taps through the tabs on a loop. |
readonly value: numbersetValue(index: number): voiddestroy(): voidimport GlassDock from './GlassDock';
<GlassDock />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Glassmorphism UI.