Toggle
Actions · upstream shadcn/ui, Stripe theme
A two-state button that can be either on or off.
Variants
Sizes
StatesHover, press and focus: try them here.
With icon
import { Toggle } from "@/components/ui/toggle"
<Toggle>…</Toggle>Tokens it uses
--inputborder#D4DEEA--foregroundtext#061B31--mutedfill#F8FAFD--destructiveerror#DF1B41--ringfocus ring#5451FBShape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity