Component recipes

Component recipe · Claude Design source

Button for Claude Design

Raw HTML-style button with no rounded corners and monospace type

Component anatomy

Raw HTML-style button with no rounded corners and monospace type

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "font-bold",
    "uppercase",
    "border-2 border-[#000000]",
    "rounded-none",
    "transition-none"
  ]
}

Variants and parameters

Primary

bg-[#000000] text-[#ffffff]

Secondary

bg-[#ffffff] text-[#000000]

Link

bg-transparent text-[#0000ff] underline border-0

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#0000ff] hover:text-[#ffffff]"
  ],
  "active": [
    "active:invert"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe