Components

Navbar

A full-width bar that condenses into a floating glass pill as you scroll — and optionally hides on the way down.

Paste it into ChatGPT, Claude, Cursor or v0.
threshold40

Usage

React
import { Navbar, Button } from '@vizzele/react';

<Navbar
  brand={<Logo />}
  links={[{ label: 'Docs', href: '/docs' }, { label: 'Pricing', href: '/pricing' }]}
  actions={<Button variant="liquid" size="sm">Sign up</Button>}
  hideOnScroll
/>

Props

PropTypeDefaultDescription
brandReactNode—Logo.
links{ label, href, active? }[]—Main links (collapse into a menu on mobile).
actionsReactNode—Right side.
thresholdnumber40Scroll px before condensing.
hideOnScrollbooleanfalseSlide away while scrolling down.
position'fixed' | 'sticky''fixed'Positioning.

Accessibility

  • <header> + <nav aria-label>, aria-current on the active link.
  • The mobile menu button exposes aria-expanded / aria-controls.