Getting Started
Foundations
Components
Search for a command to run...
NavigationMenu provides a sophisticated navigation system with support for nested menus, hover states, and keyboard navigation. It's commonly used in website headers or application navigation bars to organize links into logical groups with expandable submenus. The component supports both simple links and complex dropdown menus with rich content.
Built on top of Radix UI's NavigationMenu primitive with full keyboard navigation (Arrow keys to navigate, Enter/Space to activate), hover intent detection to prevent accidental menu openings, focus management, and accessibility support including proper ARIA attributes.
import { NavigationMenu } from "@strongtie/design-system/navigation-menu"This module exports the following components:
NavigationMenuNavigationMenuListNavigationMenuItemNavigationMenuContentNavigationMenuTriggerNavigationMenuLinkNavigationMenuIndicatorNavigationMenuViewport<NavigationMenu>This component accepts the following custom props. For additional props inherited from Radix UI primitives see the Radix UI documentation.
| Prop | Type | Default | Description |
|---|---|---|---|
viewport | boolean | true |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
navigation-menunavigation-menu-contentnavigation-menu-indicatornavigation-menu-itemnavigation-menu-linknavigation-menu-listnavigation-menu-triggernavigation-menu-viewportOther CSS classes used by this component:
menu-itemnavigation-menunavigation-menu-contentnavigation-menu-indicatornavigation-menu-indicator-arrownavigation-menu-itemnavigation-menu-linknavigation-menu-listnavigation-menu-trigger-iconnavigation-menu-viewportnavigation-menu-viewport-wrapperThis component inherits accessibility features from Radix UI, including: