Component recipe · Claude Design source
Toggle Switch for Claude Design
Chunky military-style toggle switch with power icon
Component anatomy
Chunky military-style toggle switch with power icon
{
"element": "button",
"baseClasses": [
"relative",
"w-16 h-8",
"bg-[#1a2744]",
"border-4 border-[#4a5c3a]",
"rounded-none",
"transition-all duration-200",
"shadow-[inset_0_2px_4px_rgba(0,0,0,0.4)]"
]
}Variants and parameters
Default
Visible
boolean
Interaction states
{
"active": [
"[&.active]:border-[#22c55e]",
"[&.active]:shadow-[0_0_8px_rgba(34,197,94,0.5)]"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe