Component recipes

Component recipe · Claude Design source

Card for Claude Design

Main content area card with subtle border for dashboard-like interfaces

Component anatomy

Main content area card with subtle border for dashboard-like interfaces

{
  "element": "div",
  "baseClasses": [
    "bg-white",
    "rounded-xl",
    "border border-zinc-200",
    "transition-shadow duration-200"
  ]
}

Variants and parameters

Default

shadow-sm

Flat

Metric

shadow-sm border-l-4 border-l-blue-500

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:shadow-md"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe