{
  "title": "Topbar 5",
  "description": "Global command search topbar with interactive badge notifications and active user status badge.",
  "name": "marketing-topbar-5",
  "dependencies": [],
  "registryDependencies": [
    "button",
    "sheet",
    "avatar",
    "badge"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/marketing/topbar/topbar-5.tsx",
      "type": "registry:block",
      "content": "import { useState } from \"react\";\n\nimport { Bell, Calendar, Command, Mail, Menu, Search } from \"lucide-react\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from \"@/components/ui/sheet\";\n\nexport function Topbar5() {\n    const [mobileOpen, setMobileOpen] = useState(false);\n\n    return (\n        <div>\n            <header className=\"w-full border-b\">\n                <div className=\"mx-auto flex h-16 max-w-7xl items-center justify-between gap-4 px-4 sm:px-6 lg:px-8\">\n                    <div className=\"flex items-center gap-4 sm:gap-6\">\n                        <Sheet open={mobileOpen} onOpenChange={setMobileOpen}>\n                            <SheetTrigger\n                                render={\n                                    <Button variant=\"ghost\" size=\"icon\" className=\"md:hidden\">\n                                        <Menu />\n                                    </Button>\n                                }\n                            />\n                            <SheetContent side=\"left\" className=\"w-72\">\n                                <SheetHeader className=\"border-b pb-4\">\n                                    <SheetTitle className=\"flex items-center gap-2.5 text-start font-medium\">\n                                        <div className=\"bg-muted flex size-9 shrink-0 items-center justify-center rounded-md text-sm font-medium\">\n                                            P{\" \"}\n                                        </div>\n                                        <span>PaceUI</span>\n                                    </SheetTitle>\n                                </SheetHeader>\n                                <nav className=\"flex flex-col gap-1 px-4 py-2\">\n                                    <a href=\"#\" className=\"hover:bg-muted rounded-md px-3 py-2 text-sm font-medium\">\n                                        Dashboard\n                                    </a>\n                                    <a\n                                        href=\"#\"\n                                        className=\"text-muted-foreground hover:bg-muted hover:text-foreground rounded-md px-3 py-2 text-sm font-medium\">\n                                        Inbox\n                                    </a>\n                                    <a\n                                        href=\"#\"\n                                        className=\"text-muted-foreground hover:bg-muted hover:text-foreground rounded-md px-3 py-2 text-sm font-medium\">\n                                        Calendar\n                                    </a>\n                                    <a\n                                        href=\"#\"\n                                        className=\"text-muted-foreground hover:bg-muted hover:text-foreground rounded-md px-3 py-2 text-sm font-medium\">\n                                        Reports\n                                    </a>\n                                </nav>\n                            </SheetContent>\n                        </Sheet>\n\n                        <a href=\"#\" className=\"flex items-center gap-2.5\">\n                            <div className=\"bg-muted flex size-9 shrink-0 items-center justify-center rounded-md text-sm font-medium\">\n                                P\n                            </div>\n                            <span className=\"hidden font-medium tracking-tight sm:inline\">PaceUI</span>\n                        </a>\n\n                        <div className=\"bg-muted/50 hover:bg-muted text-muted-foreground flex items-center gap-2 rounded-md border px-3 py-2 text-sm transition-colors max-sm:hidden\">\n                            <Search className=\"size-4\" />\n                            <span className=\"hidden sm:inline\">Type anywhere to search...</span>\n                            <span className=\"sm:hidden\">Search...</span>\n                            <span className=\"bg-background text-muted-foreground ms-2 hidden items-center gap-1 rounded border px-1.5 py-0.5 text-xs font-medium sm:flex\">\n                                <Command className=\"size-3\" /> K\n                            </span>\n                        </div>\n                    </div>\n\n                    <div className=\"flex items-center gap-0\">\n                        <Button variant=\"ghost\" size=\"icon\">\n                            <Calendar />\n                            <span className=\"sr-only\">Calendar</span>\n                        </Button>\n                        <Button variant=\"ghost\" size=\"icon\" className=\"relative\">\n                            <Mail />\n                            <Badge\n                                variant=\"secondary\"\n                                className=\"bg-primary text-primary-foreground absolute -end-1 -top-1 flex size-4 items-center justify-center rounded-full p-0 text-[9px]\">\n                                3\n                            </Badge>\n                            <span className=\"sr-only\">Messages</span>\n                        </Button>\n                        <Button variant=\"ghost\" size=\"icon\" className=\"relative\">\n                            <Bell />\n                            <span className=\"absolute end-2 top-2 size-2 rounded-full bg-emerald-500\" />\n                            <span className=\"sr-only\">Notifications</span>\n                        </Button>\n\n                        <div className=\"bg-border mx-1 me-3 h-5 w-px\" />\n\n                        <div className=\"relative\">\n                            <Avatar className=\"size-9\">\n                                <AvatarImage\n                                    src=\"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=100&auto=format&fit=crop&q=80\"\n                                    alt=\"Avatar\"\n                                />\n                                <AvatarFallback>AK</AvatarFallback>\n                            </Avatar>\n                            <span className=\"border-background absolute end-0 bottom-0 size-2.5 rounded-full border-2 bg-emerald-500\" />\n                        </div>\n                    </div>\n                </div>\n            </header>\n            <div className=\"bg-muted/60 flex h-36 items-center justify-center\">\n                <p className=\"text-foreground/25 font-medium\">Content Here</p>\n            </div>\n        </div>\n    );\n}\n"
    }
  ],
  "mcp": {
    "description": "Global command search topbar with interactive badge notifications and active user status badge. Relies on button, sheet, avatar, badge. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "marketing",
      "topbar"
    ]
  }
}