ComponentsNavigation
Glass Dock
A glass dock of round icons that swell in a wave as the pointer passes over them.
"use client";
import { Bell, Camera, CloudSnow, House, Map, Mountain, Settings } from "lucide-react";
import { GlassDock } from "@/components/miyuki-ui/glass-dock";
const items = [
{ title: "Home", icon: <House />, href: "#home", current: true },
{ title: "Map", icon: <Map />, href: "#map" },
{ title: "Snowfall", icon: <CloudSnow />, href: "#snowfall" },
{ title: "Peaks", icon: <Mountain />, href: "#peaks" },
{ title: "Webcams", icon: <Camera />, href: "#webcams" },
{ title: "Alerts", icon: <Bell />, href: "#alerts" },
{ title: "Settings", icon: <Settings />, href: "#settings" },
];
export default function GlassDockDemo() {
return (
<div className="flex h-[420px] items-end md:h-auto md:pt-16">
<GlassDock items={items} />
</div>
);
}Install
npx shadcn@latest add @miyuki-ui/glass-dockThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
GlassDock
Prop
Type
Gate Transition
A wrapper that switches between views through a ticket gate: two flaps swing shut across the middle, a lamp lights, the content changes behind them and the flaps swing open, all in 600ms.
Gliding Menu
A bar of menus that share one panel, which glides and reshapes itself as you move from one menu to the next.