# Header

> Page header layout with brand, nav, and actions slots.

Registry name: `header`. HTML docs: https://ui.anuragroy.dev/component/header.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/header.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/header.json`.

Registry JSON: https://ui.anuragroy.dev/r/header.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/header.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import {
  Header,
  HeaderActions,
  HeaderBrand,
  HeaderInner,
  HeaderNav
} from "@/components/ui/header"
```

## Usage

```tsx
import { Button } from "@/components/ui/button"
import {
  Header,
  HeaderActions,
  HeaderBrand,
  HeaderInner,
  HeaderNav,
} from "@/components/ui/header"

export function Example() {
  return (
    <Header>
      <HeaderInner>
        <HeaderBrand>Acme</HeaderBrand>
        <HeaderNav>
          <a href="/docs">Docs</a>
        </HeaderNav>
        <HeaderActions>
          <Button size="sm">Sign in</Button>
        </HeaderActions>
      </HeaderInner>
    </Header>
  )
}
```

## API

### Header

Landmark `header` with composition slots.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/header): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/header.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
