Component recipes

Component recipe · Claude Design source

Button for Claude Design

Editorial button with hover-underline animation and uppercase tracking

Component anatomy

Editorial button with hover-underline animation and uppercase tracking

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "tracking-[0.2em]",
    "uppercase",
    "text-xs",
    "relative",
    "pb-1",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Primary

text-[#1C1C1C] after:content-[''] after:absolute after:w-full after:h-px after:bottom-0 after:left-0 after:bg-current after:origin-bottom-right after:scale-x-0 hover:after:origin-bottom-left hover:after:scale-x-100 after:transition-transform after:duration-500

Secondary

text-[#1C1C1C]/60

Filled

bg-[#1C1C1C] text-[#F9F8F6] px-6 py-3

Ghost

text-[#1C1C1C]/40

Size

select · 3 options

Arrow Icon

boolean

Interaction states

{
  "hover": [
    "hover:text-[#1C1C1C]"
  ],
  "active": [
    "active:opacity-60"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe