mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
86 lines
1.7 KiB
TypeScript
86 lines
1.7 KiB
TypeScript
"use client"
|
|
|
|
import {
|
|
CalendarIcon,
|
|
HomeIcon,
|
|
InboxIcon,
|
|
SearchIcon,
|
|
SettingsIcon,
|
|
} from "lucide-react"
|
|
|
|
import {
|
|
Sidebar,
|
|
SidebarContent,
|
|
SidebarGroup,
|
|
SidebarGroupContent,
|
|
SidebarGroupLabel,
|
|
SidebarInset,
|
|
SidebarMenu,
|
|
SidebarMenuButton,
|
|
SidebarMenuItem,
|
|
SidebarProvider,
|
|
SidebarTrigger,
|
|
} from "@/registry/new-york-v4/ui/sidebar"
|
|
|
|
// Menu items.
|
|
const items = [
|
|
{
|
|
title: "Home",
|
|
url: "#",
|
|
icon: HomeIcon,
|
|
},
|
|
{
|
|
title: "Inbox",
|
|
url: "#",
|
|
icon: InboxIcon,
|
|
},
|
|
{
|
|
title: "Calendar",
|
|
url: "#",
|
|
icon: CalendarIcon,
|
|
},
|
|
{
|
|
title: "Search",
|
|
url: "#",
|
|
icon: SearchIcon,
|
|
},
|
|
{
|
|
title: "Settings",
|
|
url: "#",
|
|
icon: SettingsIcon,
|
|
},
|
|
]
|
|
|
|
export default function AppSidebar() {
|
|
return (
|
|
<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>
|
|
<SidebarInset>
|
|
<header className="flex h-12 items-center justify-between px-4">
|
|
<SidebarTrigger />
|
|
</header>
|
|
</SidebarInset>
|
|
</SidebarProvider>
|
|
)
|
|
}
|