Skip to main content

NavButton

NavButton — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

NavButton — Prism component.

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.

Import

const { NavButton } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
iconReact.ReactNodeThe icon node (Lucide <svg>).
labelReact.ReactNodeDestination label.
orientation"vertical" | "horizontal"vertical stacks icon over label (tab bar); horizontal is icon + label (rail).
isActivebooleanMarks the current destination (tinted + aria-current="page").
badgeReact.ReactNode | booleanA 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