Component recipes

Component recipe · Claude Design source

Button for Claude Design

Mobile Editorial style button

Component anatomy

Mobile Editorial style button

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-lg",
    "border border-[#24211f]",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#24211f] text-white

Secondary

bg-[#fffdf8] text-[#24211f]

Outline

bg-transparent text-[#24211f]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:opacity-90"
  ],
  "active": [
    "active:scale-[0.97]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe