Component recipe · Claude Design source
Toggle Switch for Claude Design
iOS-style liquid glass toggle switch with glow effect
Component anatomy
iOS-style liquid glass toggle switch with glow effect
{
"element": "button",
"baseClasses": [
"relative",
"w-12 h-7",
"bg-white/15",
"backdrop-blur-[40px] backdrop-saturate-[1.8]",
"rounded-full",
"border border-white/20",
"transition-all duration-500 ease-out"
]
}Variants and parameters
Default
Size
select · 3 options
Interaction states
{
"active": [
"[&.active]:bg-[#34C759]/40",
"[&.active]:border-[#34C759]/50",
"[&.active]:shadow-[0_0_15px_rgba(52,199,89,0.4)]"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe