Component recipes

Component recipe · Claude Design source

Rank Badge for Claude Design

Military rank insignia badge with chevron design

Component anatomy

Military rank insignia badge with chevron design

{
  "element": "div",
  "baseClasses": [
    "inline-flex items-center gap-1",
    "px-3 py-1",
    "font-mono text-xs uppercase tracking-widest",
    "border-2",
    "[clip-path:polygon(50%_0%,100%_25%,100%_75%,50%_100%,0%_75%,0%_25%)]"
  ]
}

Variants and parameters

Solid

bg-[#fbbf24] text-[#1a2744] border-[#1a2744]

Outline

bg-transparent text-[#fbbf24] border-[#fbbf24]

Glow

bg-[#22c55e] text-white border-[#22c55e] shadow-[0_0_8px_rgba(34,197,94,0.5)]

Visible

boolean

Interaction states

{}

Related base style

Fixed-version source · reviewed before publishingNext component recipe