Component recipes

Component recipe · Claude Design source

Button for Claude Design

Professional balanced button for classic header/sidebar/content layouts

Component anatomy

Professional balanced button for classic header/sidebar/content layouts

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

Variants and parameters

Primary

bg-[#3b82f6] text-white

Secondary

bg-gray-100 text-[#1e293b]

Outline

bg-transparent text-[#1e293b] border border-gray-200

Size

select · 3 options

Full Width

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe