Toggle
Actions · upstream shadcn/ui, Framer 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#212121--foregroundtext#FFFFFF--mutedfill#1A1A1A--destructiveerror#FF3366--ringfocus ring#0099FFShape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity