{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "banner-1",
  "type": "registry:block",
  "title": "Banner 1",
  "description": "Dismissible announcement bar with a shimmer highlight and a link.",
  "files": [
    {
      "path": "app/preview/banner/one/page.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport Link from 'next/link'\nimport { ArrowRight, Sparkles, X } from 'lucide-react'\n\nexport default function Banner() {\n    const [visible, setVisible] = useState(true)\n\n    if (!visible) {\n        return (\n            <div className=\"flex min-h-40 items-center justify-center\">\n                <button\n                    type=\"button\"\n                    onClick={() => setVisible(true)}\n                    className=\"text-muted-foreground hover:text-foreground text-sm underline underline-offset-4\">\n                    Show banner again\n                </button>\n            </div>\n        )\n    }\n\n    return (\n        <div\n            role=\"region\"\n            aria-label=\"Announcement\"\n            className=\"bg-foreground text-background relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1\">\n            <div\n                aria-hidden\n                className=\"absolute inset-0 -z-10 bg-[linear-gradient(110deg,transparent_25%,rgb(255_255_255/0.08)_50%,transparent_75%)] bg-[length:250%_100%] motion-safe:animate-[banner-shine_6s_linear_infinite] dark:bg-[linear-gradient(110deg,transparent_25%,rgb(0_0_0/0.08)_50%,transparent_75%)]\"\n            />\n            <p className=\"flex flex-wrap items-center gap-x-2 text-sm leading-6\">\n                <Sparkles className=\"size-4 shrink-0\" />\n                <strong className=\"font-semibold\">Lyra 2.0 is here</strong>\n                <span\n                    aria-hidden\n                    className=\"hidden opacity-50 sm:inline\">\n                    ·\n                </span>\n                <span className=\"opacity-80\">Faster builds, a new editor and 40 fresh components.</span>\n                <Link\n                    href=\"#\"\n                    className=\"group inline-flex items-center gap-1 font-semibold underline-offset-4 hover:underline\">\n                    Read the launch post\n                    <ArrowRight className=\"size-3.5 transition-transform group-hover:translate-x-0.5\" />\n                </Link>\n            </p>\n            <div className=\"flex flex-1 justify-end\">\n                <button\n                    type=\"button\"\n                    onClick={() => setVisible(false)}\n                    aria-label=\"Dismiss announcement\"\n                    className=\"-m-2 rounded-md p-2 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-2 focus-visible:outline-current\">\n                    <X className=\"size-4\" />\n                </button>\n            </div>\n            <style>{`@keyframes banner-shine { from { background-position: 100% 0 } to { background-position: -150% 0 } }`}</style>\n        </div>\n    )\n}\n",
      "type": "registry:component",
      "target": "components/banner-1.tsx"
    }
  ]
}