amankaushik481

Sidebar Section

Navigation

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>
  );
}

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6