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
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    162
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    427
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    27
  • Sidebar

    Sidebar

    441
  • Tabs

    Tabs

    38
  • Footer Section

    Footer Section

    2
  • Sidebar

    Sidebar

    366
  • Pagination

    Pagination

    119