Component recipes

Component recipe · Claude Design source

Status Bar for Claude Design

HP/Shield/Energy bar with segmented design and percentage display

Component anatomy

HP/Shield/Energy bar with segmented design and percentage display

{
  "element": "div",
  "baseClasses": [
    "relative",
    "h-6",
    "bg-[#1a2744]",
    "border border-[#4a5c3a]",
    "bg-[repeating-linear-gradient(90deg,transparent_0px,transparent_18px,#1a2744_18px,#1a2744_20px)]"
  ]
}

Variants and parameters

HP

[&>.fill]:bg-[#22c55e]

Shield

[&>.fill]:bg-[#3b82f6]

Energy

[&>.fill]:bg-[#fbbf24]

Value

select · 4 options

Interaction states

{}

Related base style

Fixed-version source · reviewed before publishingNext component recipe