Components
NavigationRailItem
A single destination inside a `NavigationRail`; renders as a link when `href` is provided, otherwise as a button.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
className | string | ClassNameComponent<NavigationRailItemInterface> | No | — | Classes or state-aware element classes applied through the shared style contract. |
selected | boolean | No | false | Controlled selected state, used when no parent drives the selection. |
variant | "vertical" | "horizontal" | No | 'vertical' | Injected by the parent NavigationRail: layout direction of the item. |
index | number | No | — | Injected by the parent NavigationRail: position of this item in the rail. |
selectedItem | number | No | — | Injected by the parent NavigationRail: index of the currently selected item. |
isExtended | boolean | No | — | Injected by the parent NavigationRail: whether the rail is extended. |
extendedOnly | boolean | No | — | Injected by the parent NavigationRail: hide the item while the rail is collapsed. |