Toggle
Actions · upstream shadcn/ui, Vercel 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#EBEBEB--foregroundtext#171717--mutedfill#F2F2F2--destructiveerror#EA001D--ringfocus ring#47A8FFShape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity