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.
12 lines
1.9 KiB
JSON
12 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "sidebar-menu",
|
|
"files": [
|
|
{
|
|
"path": "registry/new-york-v4/internal/sidebar-menu.tsx",
|
|
"content": "\"use client\"\n\nimport {\n FrameIcon,\n LifeBuoyIcon,\n MapIcon,\n PieChartIcon,\n SendIcon,\n} from \"lucide-react\"\n\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarProvider,\n} from \"@/registry/new-york-v4/ui/sidebar\"\n\nconst projects = [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: FrameIcon,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChartIcon,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: MapIcon,\n },\n {\n name: \"Support\",\n url: \"#\",\n icon: LifeBuoyIcon,\n },\n {\n name: \"Feedback\",\n url: \"#\",\n icon: SendIcon,\n },\n]\n\nexport default function AppSidebar() {\n return (\n <SidebarProvider>\n <Sidebar>\n <SidebarContent>\n <SidebarGroup>\n <SidebarGroupLabel>Projects</SidebarGroupLabel>\n <SidebarGroupContent>\n <SidebarMenu>\n {projects.map((project) => (\n <SidebarMenuItem key={project.name}>\n <SidebarMenuButton asChild>\n <a href={project.url}>\n <project.icon />\n <span>{project.name}</span>\n </a>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n </SidebarGroupContent>\n </SidebarGroup>\n </SidebarContent>\n </Sidebar>\n </SidebarProvider>\n )\n}\n",
|
|
"type": "registry:component"
|
|
}
|
|
],
|
|
"type": "registry:internal"
|
|
} |