Skip to Content
Puzzle

Bottom Navigation

Compact icon-and-label navigation for primary destinations.

Import

import { BottomNavigation, BottomNavigationItem } from "@puzzle-ui/ui";

Items

Use direct BottomNavigationItem children. Provide href for destinations or onClick for actions; active destinations receive aria-current="page".

390 × 250

API

BottomNavigation

PropTypeDefaultDescription
childrenReactNodeRequiredDirect navigation items.
ariaLabelstring"Bottom navigation"Navigation landmark name.
className, stylestring, CSSProperties-Root styling.

BottomNavigationItem

PropTypeDefaultDescription
iconReactNodeRequiredDecorative item icon.
labelstringRequiredVisible accessible name.
hrefstring-Link destination.
onClickMouseEventHandler<HTMLButtonElement>-Action callback when no href is supplied.
activebooleanfalseCurrent visual state.
className, stylestring, CSSProperties-Item styling.

The component does not choose routes or track active state. Set active from the application route. Inactive items use the muted text color; only items with active use the primary color.

;