Component recipes

Component recipe · Claude Design source

Button for Claude Design

Clean modern button with rounded corners for masonry grid interfaces

Component anatomy

Clean modern button with rounded corners for masonry grid interfaces

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

Variants and parameters

Primary

bg-zinc-900 text-white

Secondary

bg-zinc-100 text-zinc-700

Outline

bg-transparent text-zinc-700 border border-zinc-300

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-zinc-700"
  ],
  "active": [
    "active:bg-zinc-800"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe