Skip to content
nexubDesign System
v2.4.0

Components · Navigation

Navigation Rail

BetaSince v1.5.0

Navigation for medium-width windows: icons over labels, with an active pill behind the icon.

import { NavigationRail } from '@nexub/react';

Examples

Default

Props

Props
PropTypeDefaultDescription
Root headerReactNode—Slot above the items, e.g. a primary action.
Root aria-labelstring'Main'Name of the nav landmark.
Item icon / labelrequiredReactNode—Icon in the indicator pill; label below.
Item activeboolean—Marks the current page (aria-current="page").
Item asChildboolean—Use your router link as the item; pass it as the only child.

On iOS & Android