{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"gradient-border-css-outline-buttons-with-gradient-text","type":"registry:component","title":"Gradient Border CSS Outline Buttons With Gradient Text","description":"","dependencies":[],"files":[{"path":"components/we-inc/gradient-border-css-outline-buttons-with-gradient-text.tsx","type":"registry:component","content":"// Transparent outline buttons with a gradient edge and gradient label; hover fills them with the same gradient.\nconst buttons = [\n  { label: \"Download the field guide\", grad: \"linear-gradient(90deg,#db2777,#f59e0b)\", shape: \"rounded-full\" },\n  { label: \"View sample pages\", grad: \"linear-gradient(90deg,#0d9488,#2563eb)\", shape: \"rounded-lg\" },\n];\n\nexport default function GradientBorderCssOutlineButtonsWithGradientText() {\n  return (\n    <section className=\"px-5 py-16\" style={{ background: \"repeating-linear-gradient(135deg,#fdf6ec 0 14px,#faefdf 14px 28px)\" }}>\n      <style>{`\n        .gb5 { position: relative; isolation: isolate; }\n        .gb5::before { content: \"\"; position: absolute; inset: 0; z-index: -1; padding: 2px; border-radius: inherit; background: var(--g);\n          -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;\n          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: padding .25s; }\n        .gb5 span { background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; transition: color .25s; }\n        .gb5:hover::before { padding: 40px; }\n        .gb5:hover span { color: #fff; }\n        @media (prefers-reduced-motion: reduce) { .gb5::before, .gb5 span { transition: none; } }\n      `}</style>\n      <div className=\"mx-auto flex max-w-xl flex-col items-center text-center\">\n        <p className=\"text-sm font-semibold text-stone-600\">Birds of the Saltmarsh, 2nd edition</p>\n        <h2 className=\"mt-2 font-serif text-3xl text-stone-900\">A pocket guide to 140 coastal birds</h2>\n        <div className=\"mt-8 flex flex-wrap justify-center gap-4\">\n          {buttons.map((b) => (\n            <a key={b.label} href=\"#\" style={{ [\"--g\" as string]: b.grad }}\n              className={`gb5 inline-flex min-h-[48px] items-center px-6 text-sm font-semibold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-900 focus-visible:ring-offset-2 ${b.shape}`}>\n              <span>{b.label}</span>\n            </a>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}
