Component recipes

Component recipe · Claude Design source

Button for Claude Design

Compact inline action button for high-density admin panels

Component anatomy

Compact inline action button for high-density admin panels

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded",
    "transition-colors duration-150"
  ]
}

Variants and parameters

Primary

bg-[#3b82f6] text-white

Secondary

bg-white text-[#64748b] border border-[#e2e8f0]

Danger

text-[#ef4444] bg-transparent

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#2563eb]"
  ],
  "active": [
    "active:scale-[0.97]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe