{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "main-header", "title": "Main Header", "description": "Top header bar containing the logo and navigation bar with responsive collapsing.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/header-logo.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/header-navbar.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/use-push-menu.json" ], "files": [ { "path": "registry/new-york/main-header/components/main-header.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface MainHeaderProps extends React.HTMLAttributes {\n logo?: React.ReactNode\n collapsed?: boolean\n}\n\nconst MainHeader = React.forwardRef(\n ({ className, logo, collapsed = false, children, ...props }, ref) => {\n return (\n \n {/* Logo area */}\n \n {logo}\n \n {/* Navbar area */}\n
\n {children}\n
\n \n )\n }\n)\nMainHeader.displayName = \"MainHeader\"\n\nexport { MainHeader }\nexport type { MainHeaderProps }\n", "type": "registry:component" } ], "type": "registry:component" }