Toggle

A two-state button that can be either on or off.

Installation

npx shadcn@latest add https://spoke.georgedrury.co.uk/r/toggle

Lineage

Spoke utility classes

ClassFallback chainDescription
--toggletransparentColour for toggle
--toggle-bordervar(--input)Border colour for toggle
--toggle-radiusvar(--radius-md)Border radius for toggle
--shadow-togglevar(--shadow-xs)Box shadow for toggle