Component recipes

Component recipe · Claude Design source

Button for Claude Design

Clean modern button with zinc tones and rounded corners

Component anatomy

Clean modern button with zinc tones and rounded corners

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-xl",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-zinc-900 text-white shadow-sm

Secondary

bg-zinc-100 text-zinc-900

Outline

bg-transparent text-zinc-900 border border-zinc-200

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-zinc-800",
    "hover:shadow-md"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe