Grouped navigation
Click items to watch the fill glide between groups. Badges sit on the right and shrink to a dot on the icon when collapsed.
const sections = [
{
label: 'Workspace',
items: [
{ id: 'home', label: 'Home', icon: <HomeIcon /> },
{ id: 'inbox', label: 'Inbox', icon: <InboxIcon />, badge: 12 },
{ id: 'analytics', label: 'Analytics', icon: <ChartIcon /> },
],
},
{ label: 'Team', items: [/* … */] },
];
const [active, setActive] = useState('inbox');
<Sidebar
sections={sections}
activeId={active}
onSelect={(id) => setActive(id)}
header={<Logo />}
footer={<UserMenu />}
/>