Getting Started
Components
Search for a command to run...
TabNav provides a clean, organized way to present navigation options in a horizontal row with tab-like styling. Unlike Tabs which switch between content panels, TabNav is used for page-level navigation where each item typically links to a different page or section. It's commonly used in application headers, settings panels, or anywhere horizontal navigation with tab aesthetics is needed.
Built on top of Radix UI's NavigationMenu primitive with keyboard navigation support (Arrow keys to move between items, Enter/Space to activate), focus management, and accessibility features including proper ARIA attributes.
Registry Component: This component is available from the Strongtie
registry. Add it using: npx shadcn@latest add @strongtie/tab-nav
Add this component from the Strongtie registry:
Or by URL:
import { TabNav, TabNavLink } from "@/components/ui/tab-nav"This module exports the following components:
TabNavTabNavLink<TabNavLink>| Prop | Type | Default | Description |
|---|---|---|---|
active | boolean | - | Marks the link as active with a bottom border indicator and foreground text. |
asChild | boolean | - | Render as a child element instead of an anchor, for use with routers. |
disabled | boolean | - | Disables the link, preventing interaction and reducing opacity. |
Use onClick to manage active state locally instead of navigating to a URL.