# Store Header with Mega Menu

Store header with mega menu: a dark announcement bar, a mega menu of link columns and featured image tiles, search, account and bag count, collapsing to an accordion Sheet on phones.

Block · Site Nav · https://01orbital.dev/docs/blocks/store-header-01

## Installation

```bash
npx shadcn@latest add @01orbital/store-header-01
```

## API reference

A shop header: a dark announcement strip above a bar with the logo, the store navigation and links for search, account and the bag. On wide screens each category opens a large menu of link columns beside featured pictures. When the header is narrower than 64rem, a menu button opens a sheet from the left where each category folds open in an accordion.

The words live in `COPY`, and the categories, featured pictures and links in `NAVIGATION`, at the top of the file. The links point to `#`.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `cartCount?` | `number` | `0` | The number shown beside the bag icon. Defaults to `0`. |

## Make it yours

Named values at the top of `components/blocks/site-nav/store-header-01/index.tsx`: `COPY`, `NAVIGATION`, `LINK`, `MUTED`, `ROW`. Its words are in `COPY`.

## Built from

Built from these parts. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- [Accordion](https://01orbital.dev/docs/components/accordion)
- [Button](https://01orbital.dev/docs/components/button)
- [Navigation Menu](https://01orbital.dev/docs/components/navigation-menu)
- [Sheet](https://01orbital.dev/docs/components/sheet)

The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.

npm: `@phosphor-icons/react`, `cn`
