# Navigation blocks

> Website headers with a desktop menu, a full-screen mobile menu, and one clear action.

Source: https://www.honestui.com/docs/marketing/navigation

Three headers for three kinds of site. Each one turns into a full-screen menu on a phone. The close button lands where the menu button was, focus moves into the menu and returns when it closes, and every row is at least 44 pixels tall.

## Product navigation [#product-navigation]

The header most software needs. The menu has two columns with aligned links and one quiet line underneath, so it reads as an index instead of a wall of tiles.

<BlockPreview name="navigation-product" />

| Detail         | Guidance                                                                                                                                                                                                                                                     |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Use it for     | Software with several product areas and a sign-in.                                                                                                                                                                                                           |
| Content        | Three or four links on the bar. Two groups of two to four links in the menu, with descriptions under six words.                                                                                                                                              |
| Optional       | The menu note, the log in link, and `sticky`.                                                                                                                                                                                                                |
| States         | Menu opens on hover, click, Enter and Down Arrow. Escape closes it and returns focus. The mobile menu traps focus.                                                                                                                                           |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Navigation Menu](/docs/components/navigation-menu), [Sheet](/docs/components/sheet)                                                                                            |
| Goes well with | [Centered hero with wide product preview](/docs/marketing/heroes#centered-hero-with-wide-product-preview), [Split hero with product preview](/docs/marketing/heroes#split-hero-with-product-preview), [Quiet logo row](/docs/marketing/logos#quiet-logo-row) |

## Floating navigation [#floating-navigation]

A bar that keeps clear of the page edge. At rest it has a hairline and almost no shadow. Once the page scrolls, the shadow deepens and nothing resizes.

<BlockPreview name="navigation-floating" />

| Detail         | Guidance                                                                                                                                                                               |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | A centered hero or a page that opens with a large image.                                                                                                                               |
| Content        | Up to four links and one action.                                                                                                                                                       |
| Optional       | The log in link.                                                                                                                                                                       |
| States         | Rest and scrolled surfaces. The bar is sticky and lets clicks through on either side.                                                                                                  |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Sheet](/docs/components/sheet)                                                                           |
| Goes well with | [Centered hero with wide product preview](/docs/marketing/heroes#centered-hero-with-wide-product-preview), [Editorial statement hero](/docs/marketing/heroes#editorial-statement-hero) |

## Editorial navigation [#editorial-navigation]

A large wordmark, two links, and a menu set at headline size. The bar shares its columns with the editorial hero, so the links sit above the hero's paragraph.

<BlockPreview name="navigation-editorial" />

| Detail         | Guidance                                                                                                                            |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | Studios, portfolios and brands with few pages.                                                                                      |
| Content        | Two links on the bar and up to six in the menu.                                                                                     |
| Optional       | The email address and street address in the menu.                                                                                   |
| States         | The full-screen menu works the same way at every width. Escape and the close button both return focus to Menu.                      |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Sheet](/docs/components/sheet)                        |
| Goes well with | [Editorial statement hero](/docs/marketing/heroes#editorial-statement-hero), [Studio footer](/docs/marketing/footers#studio-footer) |

## Usage [#usage]

Every prop has a default, so a block renders as soon as it is installed. Pass your own content to replace it.

```tsx
import { NavigationProduct } from "@/components/marketing/navigation-product"

<NavigationProduct
  logo={<Logo />}
  links={[{ label: "Pricing", href: "/pricing" }]}
  action={{ label: "Start free", href: "/sign-up" }}
  sticky
/>
```

### NavigationProduct [#navigationproduct]


  ### `logo`

type: `ReactNode`

The wordmark. It is also the link home.

  ### `menu`

type: `NavigationProductMenu`

The label, link groups, and optional note of the dropdown.

  ### `links`

type: `MarketingLink[]`

Plain links beside the menu.

  ### `action`

type: `MarketingAction`

The one primary action.

  ### `sticky`

type: `boolean` · default: `false`

Keeps the bar at the top while the page scrolls.
