Toggle
Actions · upstream shadcn/ui, Figma 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#D6D6D6--foregroundtext#000000--mutedfill#F5F5F5--destructiveerror#972121--ringfocus ring#000000Shape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity