{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "banner-01",
  "title": "Announcement Banner",
  "author": "VenusUI",
  "description": "A slim announcement bar with a link and a dismiss button.",
  "dependencies": [
    "lucide-react"
  ],
  "files": [
    {
      "path": "registry/default/blocks/banner-01/components/banner-01.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ArrowRight, X } from \"lucide-react\"\n\n/**\n * A slim announcement bar for the top of the page with a link and a dismiss\n * button. Dismissal lasts for the visit; persist it (e.g. in localStorage)\n * if it should stay hidden.\n */\nexport function Banner01() {\n  const [open, setOpen] = React.useState(true)\n  if (!open) return null\n\n  return (\n    <div role=\"region\" aria-label=\"Announcement\" className=\"relative border-b bg-foreground text-background\">\n      <div className=\"mx-auto flex max-w-6xl items-center justify-center gap-x-3 px-10 py-2.5 text-sm\">\n        <p className=\"text-center\">\n          <span className=\"font-medium\">Version 3.0 is here.</span>{\" \"}\n          <span className=\"opacity-80\">3D components, a new docs site and more.</span>\n        </p>\n        <a href=\"#\" className=\"hidden shrink-0 items-center gap-1 font-medium underline-offset-4 hover:underline sm:inline-flex\">\n          Read more <ArrowRight aria-hidden=\"true\" className=\"size-3.5\" />\n        </a>\n      </div>\n      <button\n        type=\"button\"\n        aria-label=\"Dismiss announcement\"\n        onClick={() => setOpen(false)}\n        className=\"absolute top-1/2 right-2 inline-flex size-7 -translate-y-1/2 items-center justify-center rounded-md opacity-80 outline-none hover:opacity-100 focus-visible:ring-2 focus-visible:ring-background\"\n      >\n        <X aria-hidden=\"true\" className=\"size-4\" />\n      </button>\n    </div>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "banners"
  ],
  "type": "registry:block"
}