Function: Navbar()
Navbar(
props
):Element
The Navbar component is a UI element used to display a navigation bar that includes a menu icon for drawer toggling, notification icon, and user account information.
Parameters
Parameter | Type | Description |
---|---|---|
props | NavbarProps | Navbar component props |
Returns
Element
Example
<Navbar
showNotifications={true}
notificationsNumber={5}
notificationsOnClick={handleNotificationsClick}
avatar="https://example.com/avatar.jpg"
text="John Doe"
subText="Administrator"
/>
Defined in
packages/react-material-ui/src/components/Navbar/Navbar.tsx:71 (opens in a new tab)