inference-sh

Sidebar Light

Navigation 42

About

Lightweight sidebar navigation with nested items, icons, and active route highlighting.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sidebar Light to your project and fits it to your theme.

Code

How Sidebar Light is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SidebarLight, type NavItem } from "@/components/ui/sidebar-light"
import { Home, BookOpen, Settings, LayoutGrid, FileText, Users } from "lucide-react"

const items: NavItem[] = [
  { title: "Dashboard", href: "/dashboard", icon: Home },
  {
    title: "Documentation",
    href: "#",
    icon: BookOpen,
    items: [
      { title: "Getting Started", href: "/dashboard" },
      { title: "Installation", href: "/docs/installation" },
      { title: "Components", href: "/docs/components" },
    ],
  },
  {
    title: "Projects",
    href: "#",
    icon: LayoutGrid,
    items: [
      { title: "Overview", href: "/projects/overview", icon: FileText },
      { title: "Team", href: "/projects/team", icon: Users },
    ],
  },
  { title: "Settings", href: "/settings", icon: Settings },
]

export default function SidebarLightDemo() {
  return (
    <div className="flex min-h-[420px] w-full justify-center bg-background p-6">
      <div className="w-64 rounded-lg border border-border p-3">
        <SidebarLight items={items} />
      </div>
    </div>
  )
}

Dependencies

More by inference-sh

View all
  • YouTube Embed

    YouTube Embed

    35
  • Zoomable Image

    Zoomable Image

    27
  • Table of Contents

    Table of Contents

    17
  • Code Block

    Code Block

    5
  • Virtualized List

    Virtualized List

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    76
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    392
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • NavBar

    NavBar

    2
  • Pagination

    Pagination

    109
  • Tabs like bookmark

    Tabs like bookmark

    82