Component recipes

Component recipe · Claude Design source

Button for Claude Design

Compact sidebar-friendly button with icon support for dashboard navigation

Component anatomy

Compact sidebar-friendly button with icon support for dashboard navigation

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-lg",
    "flex items-center gap-2",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Primary

bg-blue-500 text-white

Secondary

bg-zinc-100 text-zinc-700

Outline

bg-transparent text-zinc-600 border border-zinc-200

Size

select · 3 options

Full Width

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe