{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tailwindcss-buttons",
  "title": "Tailwind CSS Buttons",
  "description": "Browse and copy a responsive gallery of polished Tailwind CSS button styles.",
  "dependencies": [
    "react-element-to-jsx-string",
    "react-is"
  ],
  "registryDependencies": [
    "https://tentui.com/r/copy-button.json"
  ],
  "files": [
    {
      "path": "src/registry/components/tailwindcss-buttons/tailwindcss-buttons.tsx",
      "content": "\"use client\";\n\nimport type { ReactElement } from \"react\";\nimport reactElementToJSXString from \"react-element-to-jsx-string\";\nimport { CopyButton } from \"@/registry/components/copy-button/copy-button\";\n\ntype TailwindButton = {\n\tname: string;\n\tdescription: string;\n\tcomponent: () => ReactElement;\n};\n\ntype ButtonsCardProps = {\n\tbutton: TailwindButton;\n};\n\nexport function ButtonsCard({ button }: ButtonsCardProps) {\n\tconst component = button.component();\n\tconst code = reactElementToJSXString(component, {\n\t\tsortProps: false,\n\t\tuseBooleanShorthandSyntax: true,\n\t});\n\n\treturn (\n\t\t<div className=\"relative flex w-full flex-col overflow-hidden rounded-xl border bg-muted shadow-card\">\n\t\t\t<div className=\"flex items-center justify-between px-4 py-2\">\n\t\t\t\t<span className=\"text-muted-foreground text-xs\">{button.name}</span>\n\t\t\t\t<CopyButton\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\ttext={code}\n\t\t\t\t\taria-label={`Copy ${button.name} button code`}\n\t\t\t\t>\n\t\t\t\t\tCopy\n\t\t\t\t</CopyButton>\n\t\t\t</div>\n\n\t\t\t<div className=\"relative flex h-[260px] w-full items-center justify-center overflow-hidden rounded-xl bg-background p-8 shadow-surface-inset\">\n\t\t\t\t{component}\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nexport function TailwindcssButtons() {\n\treturn (\n\t\t<div className=\"mx-auto grid w-full grid-cols-1 gap-6 px-4 pb-40 lg:grid-cols-2\">\n\t\t\t{buttons.map((button) => (\n\t\t\t\t<ButtonsCard key={button.name} button={button} />\n\t\t\t))}\n\t\t</div>\n\t);\n}\n\nexport function PrimaryButton() {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclassName=\"inline-flex h-12 items-center justify-center rounded-full bg-blue-600 px-6 font-semibold text-sm text-white shadow-[inset_0_1px_0_0_rgba(255,255,255,0.28),0_1px_2px_0_rgba(0,0,0,0.18)] outline-none transition-[background-color,box-shadow,transform] duration-150 ease-out hover:bg-blue-700 focus-visible:outline-2 focus-visible:outline-blue-600 focus-visible:outline-offset-2 active:translate-y-px dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.22),0_2px_6px_0_rgba(0,0,0,0.45)] dark:focus-visible:outline-blue-400\"\n\t\t>\n\t\t\tPrimary\n\t\t</button>\n\t);\n}\n\nexport function SecondaryButton() {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclassName=\"inline-flex h-12 items-center justify-center rounded-full border border-black/10 bg-black/[0.06] px-6 font-semibold text-sm text-zinc-900 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.8),inset_0_-1px_2px_0_rgba(0,0,0,0.12),0_1px_2px_0_rgba(0,0,0,0.08)] outline-none backdrop-blur-2xl transition-[background-color,border-color,box-shadow,transform] duration-150 ease-out hover:bg-black/[0.10] focus-visible:outline-2 focus-visible:outline-zinc-700 focus-visible:outline-offset-2 active:translate-y-px dark:border-white/[0.12] dark:bg-white/[0.08] dark:text-white dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.16),inset_0_-1px_2px_0_rgba(0,0,0,0.45),0_1px_3px_0_rgba(0,0,0,0.35)] dark:focus-visible:outline-zinc-300 dark:hover:bg-white/[0.14]\"\n\t\t>\n\t\t\tSecondary\n\t\t</button>\n\t);\n}\n\nexport function ThreeDButton() {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclassName=\"inline-flex h-12 items-center justify-center rounded-xl border border-zinc-950 bg-zinc-800 px-6 font-semibold text-sm text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.16),0_5px_0_#09090b,0_9px_14px_rgba(0,0,0,0.22)] outline-none transition-[background-color,box-shadow,transform] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] hover:bg-zinc-700 focus-visible:outline-2 focus-visible:outline-zinc-900 focus-visible:outline-offset-4 active:translate-y-[3px] active:bg-zinc-900 active:shadow-[inset_0_1px_2px_rgba(0,0,0,0.4),0_2px_0_#09090b,0_4px_6px_rgba(0,0,0,0.18)] motion-reduce:transform-none motion-reduce:transition-none dark:focus-visible:outline-zinc-300\"\n\t\t>\n\t\t\t3D Button\n\t\t</button>\n\t);\n}\n\nexport function ThreeDDestructiveButton() {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclassName=\"inline-flex h-12 items-center justify-center rounded-xl border border-red-800 bg-red-600 px-6 font-semibold text-sm text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.22),0_5px_0_#991b1b,0_9px_14px_rgba(127,29,29,0.24)] outline-none transition-[background-color,box-shadow,transform] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] hover:bg-red-500 focus-visible:outline-2 focus-visible:outline-red-600 focus-visible:outline-offset-4 active:translate-y-[3px] active:bg-red-700 active:shadow-[inset_0_1px_2px_rgba(69,10,10,0.42),0_2px_0_#991b1b,0_4px_6px_rgba(127,29,29,0.2)] motion-reduce:transform-none motion-reduce:transition-none dark:focus-visible:outline-red-400\"\n\t\t>\n\t\t\t3D Destructive\n\t\t</button>\n\t);\n}\n\nexport const buttons: TailwindButton[] = [\n\t{\n\t\tname: \"Primary\",\n\t\tdescription: \"A blue pill button with a subtle inset highlight.\",\n\t\tcomponent: PrimaryButton,\n\t},\n\t{\n\t\tname: \"Secondary\",\n\t\tdescription: \"A translucent glass pill button with inset depth.\",\n\t\tcomponent: SecondaryButton,\n\t},\n\t{\n\t\tname: \"3D Button\",\n\t\tdescription: \"A dark button with a tactile raised edge.\",\n\t\tcomponent: ThreeDButton,\n\t},\n\t{\n\t\tname: \"3D Destructive\",\n\t\tdescription: \"A destructive red button with decisive press feedback.\",\n\t\tcomponent: ThreeDDestructiveButton,\n\t},\n];\n\nexport default TailwindcssButtons;\n",
      "type": "registry:component",
      "target": "@components/tailwindcss-buttons.tsx"
    }
  ],
  "meta": {
    "createdAt": "2026-07-26",
    "image": "https://cdn.tentui.com/images/components/tailwindcss-buttons",
    "video": "https://cdn.tentui.com/videos/components/tailwindcss-buttons"
  },
  "docs": "https://tentui.com/components/tailwindcss-buttons",
  "categories": [
    "buttons"
  ],
  "type": "registry:component"
}