Component recipes

Component recipe · Claude Design source

Button for Claude Design

Compact functional button for data-focused dashboard interfaces

Component anatomy

Compact functional button for data-focused dashboard interfaces

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

Variants and parameters

Primary

bg-[#6366f1] text-white

Secondary

bg-gray-100 text-[#111827]

Outline

bg-transparent text-[#111827] border border-gray-200

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#4f46e5]"
  ],
  "active": [
    "active:bg-[#4338ca]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe