Back to components

Navigation

Floating Nav Dock

A pill-shaped navigation dock with translucent depth and compact labels.

navdockglass

Installation

Copy and paste the code into your project.

Accessibility notes

Keep an aria-label on the nav and use real links for each destination.

Preview accent

TypeScript
const items = ["Home", "UI", "AI", "Docs"];

export function FloatingNavDock() {
  return (
    <nav aria-label="Preview navigation" className="rounded-full border border-white/12 bg-[#0b0f14]/78 p-1 shadow-2xl backdrop-blur">
      <ul className="flex gap-1">
        {items.map((item) => (
          <li key={item}>
            <button className="block rounded-full px-3 py-2 text-xs font-medium text-slate-300 transition hover:bg-white/10 hover:text-white" type="button">
              {item}
            </button>
          </li>
        ))}
      </ul>
    </nav>
  );
}
Usage
<FloatingNavDock />

Related components

Command palette

⌘K
Generate dashboard layout

3 actions ready · 1 agent online

Cards

Glass Command Card

Beginner

A glassmorphism command card for product shortcuts, palettes, and agent actions.

glasscommandshortcut
View component

Eval score

94.8%+6.2

Cards

Glass Metric Card

Beginner

A compact KPI card with a progress rail for evals, usage, and model quality signals.

metricdashboardglass
View component

Navigation

Context Menu Panel

Intermediate

A floating action menu for editor surfaces, AI workspaces, and command-rich tools.

menuactionsfloating
View component