About
A titled group wrapper for stacking sidebar nav links under a small uppercase label, used to organize app navigation into sections like "Workspace" or "Settings".
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sidebar Section to your project and fits it to your theme.
Code
How Sidebar Section is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { SidebarSection } from "@/components/ui/sidebar-section";
export default function SidebarSectionDemo() {
return (
<div className="flex h-96 w-64 rounded-xl border border-border bg-background">
<nav aria-label="Main" className="w-full">
<SidebarSection title="Workspace">
<a
href="#"
className="flex items-center rounded-md px-2 py-1.5 text-sm font-medium bg-muted text-foreground"
>
Inbox
</a>
<a
href="#"
className="flex items-center rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:bg-muted hover:text-foreground"
>
Reports
</a>
</SidebarSection>
<SidebarSection title="Billing">
<a
href="#"
className="flex items-center rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:bg-muted hover:text-foreground"
>
Invoices
</a>
<a
href="#"
className="flex items-center rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:bg-muted hover:text-foreground"
>
Customers
</a>
</SidebarSection>
</nav>
</div>
);
}















