Navbars are top app bars with slots for multiple types of buttons, dropdowns, etc. It's intended to be easy to modify.
<NavBar
navButtons={[
<Button key="1" label="Home" variant="text" />,
<Button key="2" label="About" variant="text" />,
<Button key="3" label="Careers" variant="text" />,
]}
iconButtons={[
<IconButton key="search" icon="search" variant="text" color="surfacecontainer" />,
<IconButton key="briefcase" icon="note" variant="text" color="surfacecontainer" />,
<IconButton key="heart" icon="book" variant="text" color="surfacecontainer" />,
]}
ctaButtons={[
<Button key="secondary" label="Secondary" variant="outline" color="surface" />,
<Button key="primary" label="Primary" variant="fill" color="surfacecontainer" />,
]}
/>
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Props unique to this component.
Props with globally-defined behavior that are used in multiple components.