Skip to content
Components91 / 118

Glass Nav

A floating navigation bar of soft, borderless frosted glass that rises in with an overshoot. A frosted lens glides under the links on a spring, stretching and squashing as it goes; the sun / moon knob hops across and jiggles as the bar breathes into its new tint; the button leans toward your cursor and presses like jelly.

NavigationHeaderFrosted glassTheme toggleSpringsAnimation principlesGSAP
Point at the linksFlip the sun / moon switch

Tweak

LIVE

Look

Theme

56px
22px

Props

10 props
  • brandstring
    Your name.default "Altura"
  • logoReactNode
    Your mark (defaults to a simple glyph).
  • links{ label: string; href?: string }[]
    The links.
  • cta{ label: string; href?: string }
    The button.default { label: "Get Started" }
  • theme"dark" | "light"
    Controlled theme.
  • defaultTheme"dark" | "light"
    Starting theme.default "dark"
  • onThemeChange(theme) => void
    Called when the switch flips.
  • sizenumber
    Bar height, px.default 56
  • frostnumber
    How deep the frost is (px of blur).default 22
  • classNamestring
    Extra classes.