Component packs › Liquid Glass › Glass Dock

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.

Glass Dock props

PropTypeDefaultDescription
itemsDockItem[]
valuenumber
labelstring
onChange(index: number) => void
autoplaynumber | falseShowcase mode: taps through the tabs on a loop.

Methods on the ref

Use it in React

import GlassDock from './GlassDock';

<GlassDock />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Liquid Glass

Good for: Glassmorphism UI.