Skip to main content

NavButton

A large toolbar / tab-bar destination button (icon over or beside a label).

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A large toolbar / tab-bar destination button (icon over or beside a label).

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/nav-button
import { NavButton } from '@/components/prism/NavButton';

In a no-build prototype, read it from the bundle instead: const { NavButton } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
iconReact.ReactNode—The icon node (Lucide <svg>).
labelReact.ReactNode—Destination label.
orientation"vertical" | "horizontal"—vertical stacks icon over label (tab bar); horizontal is icon + label (rail).
isActiveboolean—Marks the current destination (tinted + aria-current="page").
badgeReact.ReactNode | boolean—A count (number/string) or a bare dot (true) shown on the icon.
onPress(e: React.MouseEvent) =&gt; void—
onClick(e: React.MouseEvent) =&gt; void—
classNamestring—