Skip to content
nexubDesign System
v11.9.0

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';
View as Markdown

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`).

nexub

Props

Props
PropTypeDefaultDescription
logorequiredReact.ReactNode—Logo, wrapped in a link to logoHref.
itemsrequiredMarketingNavItem[]—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.
countriesMarketingCountry[]—Country sites: { code, label, href }. The switcher shows when there are two or more.
countrystring—Current country code.
actionsReact.ReactNode—Sign in / Get started buttons.
logoHrefstring'/'Where the logo links.
menuLabelstring'Open menu'Accessible name of the mobile menu button.
countryLabelstring'Choose country'
logoLabelstring—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