Sidebar
An app's menu: a SidebarProvider that starts collapsed around a Sidebar that keeps its icons and widens while the pointer or the focus is on it (expandOnHover), the page moving over for it, and a SidebarTrigger with toggle at the start of the page's top bar, outside the sidebar, that keeps it wide or narrow. The workspace sits on top, its pages are transparent buttons with the open one soft and a count after its label, and the signed-in person is at the foot.
Title
Description
Usage
Examples
Border radius
borderRadius sets the corners of the sidebar's rows on the kit's one scale: none, xs 4px, sm 6px, base 8px (the default), lg 12px, xl 16px, or full to round them. A menu button takes it, and a sub-menu button and a group's label sit one step inside; here the open page and its parent are marked so their corners show.
Loading
While the workspace, its pages and the signed-in person load: a SidebarMenuSkeleton for the workspace, three for the pages and one for the person, each its icon's square alone while the menu is narrow.
API Reference
Sidebar
SidebarProps · components/Sidebar/Sidebar.types.tsSidebarProvider
SidebarProviderProps · also takes the props of <div>SidebarTrigger
SidebarTriggerProps · also takes the props of ButtonSidebarInset
SidebarInsetProps · takes the props of <main>SidebarHeader
SidebarHeaderProps · takes the props of <div>SidebarFooter
SidebarFooterProps · takes the props of <div>SidebarContent
SidebarContentProps · takes the props of <div>SidebarGroup
SidebarGroupProps · takes the props of <div>SidebarGroupLabel
SidebarGroupLabelProps · takes the props of <div>SidebarGroupContent
SidebarGroupContentProps · takes the props of <div>SidebarMenu
SidebarMenuProps · takes the props of <ul>SidebarMenuItem
SidebarMenuItemProps · takes the props of <li>SidebarMenuButton
SidebarMenuButtonProps · also takes the props of <button>SidebarMenuSkeleton
SidebarMenuSkeletonProps · also takes the props of <div>SidebarMenuSub
SidebarMenuSubProps · takes the props of <ul>SidebarMenuSubItem
SidebarMenuSubItemProps · takes the props of <li>SidebarMenuSubButton
SidebarMenuSubButtonProps · also takes the props of <a>It also takes the props of <div>.