menu_open

Navigation drawer & btn nav

Side drawer navigation with grouped links.

Navigation_drawer Examples

Copy-ready examples with live previews.

On this page

Button_navigation Props

Button_navigation — Props
PropTypeRequiredDefaultDescription
iconNamestringNoundefinedIcon name forwarded to your Icon/Badges implementation.
labelstringNo""Display label. Truncated for UX: about 20 chars normally, and about 5 chars when `isCollapsed=true`.
showInfobooleanNoundefinedWhen true, renders the badge node.
baseNumbernumberNo0Badge value (used when `showInfo` is true and `notQuantity` is not true).
baseLimitnumberNo0Badge max. When `baseNumber > baseLimit`, renders `${baseLimit}+`.
notQuantitybooleanNoundefinedWhen true, renders a dot badge instead of a number.
variant"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "info"NoundefinedBadge tone (forwarded to Badges).
isCollapsedbooleanNofalseCollapsed/minimized mode. Uses a compact layout (badge + label). Also affects group behavior: groups are disabled when collapsed.
isSelectedbooleanNofalseAdds selected modifier class.
isDisabledbooleanNofalseDisables interaction and adds disabled modifier class.
levelnumberNo0Indentation level. Applied as CSS variable `--_level` on the wrapper.
subItemsReact.ReactNodeNoundefinedIf provided (and `isCollapsed` is not true), the item becomes a collapsible group and renders this node as the sub-items container.
isExpandedbooleanNoundefinedControlled expanded state for groups. When provided, the group is controlled.
defaultExpandedbooleanNofalseUncontrolled initial expanded state for groups.
onExpandedChange(next: boolean) => voidNoundefinedCalled when a group toggles (only in controlled mode).
onClick(e: React.MouseEvent<HTMLButtonElement>) => voidNoundefinedCalled only when the item is NOT a group (no `subItems`).
onChange(...args: any[]) => anyNoundefinedDeclared for API consistency; currently not used by the component.