About
A liquid glass tab bar whose rim opens into a notch under the current tab. The active icon rides in a bubble that slides and stretches to the next one while labels stay put. Tune frost, opacity, refraction and notch depth.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Liquid Glass Tab Bar to your project and fits it to your theme.
Code
How Liquid Glass Tab Bar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { useState, type MouseEvent } from "react";
import { Images, Layers, Plus, UserRound, Users } from "lucide-react";
import "@fontsource-variable/manrope";
import LiquidGlassTabBar, { type TabBarItem } from "@/components/ui/liquid-glass-notched-dock";
const settings = {
frost: 3,
glassOpacity: 0.16,
refraction: 20,
edgeLight: 1,
notchDepth: 0.8,
};
const destinations: TabBarItem[] = [
{ id: "library", href: "#library", label: "Library", icon: <Images /> },
{ id: "albums", href: "#albums", label: "Albums", icon: <Layers /> },
{ id: "import", href: "#import", label: "Import", icon: <Plus /> },
{ id: "shared", href: "#shared", label: "Shared", icon: <Users />, badge: "2 new shared albums" },
{ id: "you", href: "#you", label: "You", icon: <UserRound /> },
];
// Photo: Teal and white blur, Ikhlas on Unsplash. A light scrim in the theme background colour keeps it in step with light and dark mode.
const demoStyles = `
.stage { font-family: "Manrope Variable", Manrope, system-ui, sans-serif; }
.stage-field {
background: var(--color-muted) url("https://cdn.21st.dev/assets/mirror/e5/e5a0fe867759d6c69d0bc00bc0d1621973b645afdd6bfb696ccce4cdd0be703e.jpg") center / cover no-repeat;
}
.stage-scrim {
background: linear-gradient(180deg, color-mix(in srgb, var(--color-background) 30%, transparent), color-mix(in srgb, var(--color-background) 8%, transparent) 55%, color-mix(in srgb, var(--color-background) 22%, transparent));
}
`;
export default function LiquidGlassTabBarDemo(props: Partial<typeof settings> = {}) {
const s = { ...settings, ...props };
const [activeId, setActiveId] = useState("albums");
const onNavigate = (item: TabBarItem, event: MouseEvent<HTMLAnchorElement>) => {
event.preventDefault();
setActiveId(item.id);
};
return (
<main className="stage grid h-svh min-h-[360px] w-full place-items-center bg-background p-4 text-foreground sm:p-6">
<style>{demoStyles}</style>
<div className="stage-field relative isolate grid h-full max-h-[520px] w-full max-w-[920px] place-items-center overflow-hidden rounded-3xl border border-border px-4">
<div className="stage-scrim absolute inset-0 -z-10" aria-hidden="true" />
<div className="w-full min-w-0 max-w-[460px]">
<LiquidGlassTabBar
items={destinations}
activeId={activeId}
onNavigate={onNavigate}
label="Primary"
notchDepth={s.notchDepth * 1.25}
glass={{ blur: s.frost, opacity: s.glassOpacity, edge: s.edgeLight, distortion: s.refraction }}
/>
</div>
</div>
</main>
);
}
















