Floating navbar

Pro

A full-width header that gathers into a floating glass pill as you scroll, hides on the way down and returns on the first scroll up, with a springy active-section pill, a hover pill and a reading progress hairline.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Bar to pill morph of width, radius and glass on one spring
  • Direction-aware hide and show; focus always reveals it
  • Built-in scroll spy on the window or a container
  • Mobile menu that grows out of the pill
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/floating-navbar

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/floating-navbar.tsx.

More Pro components

Dynamic island

A black pill that hosts live activities and springs between shapes: compact, split with a bubble, and an expanded panel for a timer, music with a waveform, a call or a toast.

Pro

Gooey nav

Liquid navigation: the active blob stretches with its speed and trails a neck that thins and snaps, and menu items pinch off the main button through an SVG metaball filter.

Pro

Radial menu

A pie menu under the pointer: press, drag toward a slice and release. Slices swell as the pointer nears, and submenus fan out of their slice as a second ring.

Pro