Component recipe · Claude Design source
Function Badge for Claude Design
Minimal badge following Bauhaus 'form follows function' principle
Component anatomy
Minimal badge following Bauhaus 'form follows function' principle
{
"element": "div",
"baseClasses": [
"inline-flex items-center justify-center",
"font-sans",
"font-bold",
"uppercase",
"tracking-widest",
"border-2 border-black",
"rounded-none",
"transition-opacity duration-200"
]
}Variants and parameters
Red
bg-[#dd0000] text-white
Blue
bg-[#0057b8] text-white
Yellow
bg-[#ffd700] text-black
Black
bg-black text-white
Size
select · 3 options
Interaction states
{
"hover": [
"hover:opacity-80"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe