Sidebar
Sidebar is a React and Tailwind CSS navigation component from Bund UI, licensed MIT. Copy it and paste it into your project.
Bund UI
MIT
navigation
What it is
Sidebar is a React and Tailwind CSS navigation component from Bund UI, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
Needs
npm i lucide-react
Licence
This component comes from Bund UI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Sidebar
import { Calendar, Home, Inbox, Search, Settings } from "lucide-react";
import {
Sidebar,
SidebarContent,
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarProvider
} from "@/components/ui/sidebar";
const items = [
{
title: "Home",
url: "#",
icon: Home
},
{
title: "Inbox",
url: "#",
icon: Inbox
},
{
title: "Calendar",
url: "#",
icon: Calendar
},
{
title: "Search",
url: "#",
icon: Search
},
{
title: "Settings",
url: "#",
icon: Settings
}
];
export default function SidebarDemo() {
return (
<div className="h-[300px]">
<SidebarProvider>
<Sidebar>
<SidebarContent>
<SidebarGroup>
<SidebarGroupLabel>Application</SidebarGroupLabel>
<SidebarGroupContent>
<SidebarMenu>
{items.map((item) => (
<SidebarMenuItem key={item.title}>
<SidebarMenuButton asChild>
<a href={item.url}>
<item.icon />
<span>{item.title}</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
))}
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
</SidebarContent>
</Sidebar>
</SidebarProvider>
</div>
);
}