General
Your workspace's name, address and language.
- Add the registry
- Add side-nav
Usage
Give SideNav an aria-label and set active on the current page's item. Below the lg
breakpoint the list becomes a scrolling row, so place it above the content on small screens. The
active item scrolls into view, and the edges fade wherever there's more to scroll. To keep one
layout at every width, set orientation.
The active item announces itself as the current page. For links to sections of one page, pass
aria-current="location" along with active.
To use your router's link, pass it to render on SideNavItem, as in
render={<Link to="/settings/profile" />}.
Composition
Examples
Without groups
Put SideNavItems directly in SideNav for a short list.
Orientation
orientation is responsive by default, a row below lg and a column from it. Set it to
horizontal to keep the scrolling row at every width, as in a bar of a page's sections, or to
vertical to keep the column, as in a menu drawer on a phone.
Scrolling
Give SideNav a height to scroll a long list in the sidebar. It's a
Scroll Area, so it fades at the edges and shows a scrollbar on hover.
Props
The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.