Skip to main content

NavigationBarItem

Imports

import {NavigationBarItem} from 'material-expressive-react';
import {NavigationBarItem} from 'material-expressive-react/navigation';

Props

PropTypeDefaultRequiredDescription
activebooleanfalseNoInternal: set by NavigationBar.
activeIconReactNodeNoIcon shown when active (falls back to icon).
badgeReactNodeNoOptional badge shown on the icon.
hideInactiveLabelbooleanfalseNoInternal: set by NavigationBar.
iconReactNodeNoIcon shown when inactive.
indexnumberNoInternal: set by NavigationBar.
itemRef((el: HTMLButtonElement | null) => void)NoInternal: set by NavigationBar.
labelstringNoLabel displayed under/next to the icon.
onSelect(() => void)NoInternal: set by NavigationBar.
variantenumverticalNoInternal: set by NavigationBar.

Events

This component does not explicitly re-emit DOM events via wrapper props.

Slots

Material Web components frequently use named slots. In React, you can pass slot="..." on children (e.g. <Icon slot="icon" />).

If you need to slot a child component that does not accept a slot prop, use the Slotted utility (see Utilities → Slotted).

Examples

See Storybook for live examples and variants.