{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "control-sidebar", "title": "Control Sidebar", "description": "Right sidebar panel with dark/light variants, tab navigation, and slide-in toggle.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-tabs.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/use-control-sidebar.json" ], "files": [ { "path": "registry/new-york/control-sidebar/components/control-sidebar.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface ControlSidebarProps extends React.HTMLAttributes {\n isOpen?: boolean\n onToggle?: () => void\n variant?: \"dark\" | \"light\"\n}\n\nconst ControlSidebar = React.forwardRef(\n (\n {\n className,\n isOpen = false,\n onToggle,\n variant = \"dark\",\n children,\n ...props\n },\n ref\n ) => {\n return (\n \n
\n {children}\n
\n \n )\n }\n)\nControlSidebar.displayName = \"ControlSidebar\"\n\ninterface ControlSidebarToggleProps\n extends React.ButtonHTMLAttributes {}\n\nconst ControlSidebarToggle = React.forwardRef<\n HTMLButtonElement,\n ControlSidebarToggleProps\n>(({ className, onClick, ...props }, ref) => {\n return (\n \n {/* Gears icon */}\n \n \n \n \n )\n})\nControlSidebarToggle.displayName = \"ControlSidebarToggle\"\n\nexport { ControlSidebar, ControlSidebarToggle }\nexport type { ControlSidebarProps, ControlSidebarToggleProps }\n", "type": "registry:component" } ], "type": "registry:component" }