Behive Tech Registry

Nav Item

v0.4.0

A single navigation link with an optional leading icon and active state. The `active` modifier is applied on the component's own root element (per BEM), so it can be dropped into any nav/sidebar layout.

pnpm add @behivetech/atoms.nav-item

A single navigation link with an optional leading icon and active state. The active modifier is applied on the component's own root element (per BEM), so it can be dropped into any nav/sidebar layout.

Usage

Compositions

Open all 2 →

Properties

NavItem props

PropTypeDefaultDescription
activebooleanfalseWhether this item represents the current route
childrenReactNode—Content to render inside the component
classNamestring—Additional class names to merge with the component root element
iconReactNode—Leading icon rendered before the content

Also accepts the native attributes of its root element (className, aria-*, event handlers, …).