Docs
NavbarNavbar
The default Navbar component with a sidebar trigger and searchbar.
The default Navbar component with a sidebar toggle and search dialog trigger.
Note: It has been included in the <DocsLayout />
by default.
Usage
Prop | Type | Default |
---|---|---|
title | ReactNode | - |
url | string | / |
transparent | boolean | false |
items | NavItemProps[] | - |
links | NavLinkProps[] | - |
enableSidebar | boolean | - |
collapsibleSidebar | boolean | - |
Disable Sidebar
As your navbar can be displayed in any pages without a sidebar, you may want to hide the sidebar trigger in specific pages.
Items
You can pass an array of items to the component, it needs a children, href and a boolean indicating whether it is an external link.
Links
You can pass an array of links to the component, it needs an icon and label (for
aria-label
).
Last updated on