Patterns · Marketing
MarketingNav
Since v3.1.0
The site header: logo, links with mega-menus, a country switcher and actions. Below `lg` the links move into a side sheet.
import { MarketingNav } from '@nexub/marketing';Examples
Default
Grouped mega-menu
An item with `columns` opens a panel as wide as the container: up to 5 columns (3 + 2 below `xl`), each a labelled list whose title can link to the division page, with an optional `footer` strip and `feature` card. In the side sheet each column is an accordion section. `accent` tints a heading with the division colour (load `@nexub/themes/divisions`).
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| logorequired | React.ReactNode | — | Logo, wrapped in a link to logoHref. |
| itemsrequired | MarketingNavItem[] | — | Links; an item with items opens a mega-menu of links with descriptions; one with columns (MarketingNavColumn[]: title, href, description, accent, links) opens a grouped mega-menu, with optional footer links and a feature card. A link's badge shows after its label and is part of its accessible name. |
| countries | MarketingCountry[] | — | Country sites: { code, label, href }. The switcher shows when there are two or more. |
| country | string | — | Current country code. |
| actions | React.ReactNode | — | Sign in / Get started buttons. |
| logoHref | string | '/' | Where the logo links. |
| menuLabel | string | 'Open menu' | Accessible name of the mobile menu button. |
| countryLabel | string | 'Choose country' | |
| logoLabel | string | — | Accessible name for the logo link. Defaults to the logo's own name; set it only if it still contains the visible wordmark. |
On iOS & Android
Web only
MarketingNav has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.