Component recipes

Component recipe · Claude Design source

Card for Claude Design

Content card with subtle border for the main column of holy grail layout

Component anatomy

Content card with subtle border for the main column of holy grail layout

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

Variants and parameters

Default

shadow-sm

Flat

Metric

shadow-sm border-t-4 border-t-[#3b82f6]

Padding

select · 3 options

Interactive

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe