# Navbar

> Site header built from data: brand, links and actions. Responsive, with a menu panel on small screens.

Status: stable. Category: Patterns.

```ts
import { Navbar } from '@glyphui/ui'
```

Exports: `Navbar`, `navbarStyles`.

## Notes

- By default it is sticky and transparent, gaining a blurred background and border once the page scrolls.
- Links render through GlyphProvider linkComponent, so router navigation works.

## Navbar props

| Prop | Type | Default | Description |
|---|---|---|---|
| `brand` (required) | `ReactNode` |  |  |
| `actions` | `ReactNode` |  | Right side on desktop; bottom of the menu panel on mobile. |
| `blurOnScroll` | `boolean` |  | Transparent at the top; translucent with blur and a border once scrolled. Default true. |
| `containerSize` | `"sm" \| "md" \| "lg" \| "xl" \| "full"` |  |  |
| `links` | `readonly NavLink[]` |  |  |
| `sticky` | `boolean` |  | Stick to the top of the viewport. Default true. |

## Example: Basic

```tsx
import { Button, Navbar } from '@glyphui/ui'

export default function Example() {
  return (
    <div className="overflow-hidden rounded-lg border border-border">
      <Navbar
        sticky={false}
        blurOnScroll={false}
        brand={<span className="font-display">acme</span>}
        links={[
          { label: 'Product', href: '#product', active: true },
          { label: 'Pricing', href: '#pricing' },
          { label: 'Docs', href: '#docs' },
        ]}
        actions={
          <>
            <Button variant="ghost" size="sm">
              Sign in
            </Button>
            <Button size="sm">Get started</Button>
          </>
        }
      />
    </div>
  )
}
```

Live page: https://glyphui.xyz/components/navbar
