Zephora UI

Navigation

NavigationMenu

Horizontal site navigation mixing plain links with expandable mega-menu panels that close on Escape or outside press.

Import

import { NavigationMenu } from "@zephora/react";

Examples

Links and a panel

Entries with `href` render as links; entries with `content` render a toggle button and panel.

Mega panel

Panels take arbitrary content — columns of links, previews, anything.

API

NavigationMenu props

PropTypeDefaultDescription
items *Array<{ label: string; href?: string } | { label: string; content: ReactNode }>Plain links (href) or expandable panels (content).
unstyledbooleanfalseHeadless mode — skips Zephora styling.

Keyboard

KeyAction
Enter / SpaceToggles the focused panel trigger.
EscapeCloses the open panel and returns focus to its trigger.
TabMoves through links, triggers and panel content.