Toggle
Actions · upstream shadcn/ui, Vercel dashboard 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#2E2E2E--foregroundtext#EDEDED--mutedfill#1A1A1A--destructiveerror#E2162A--ringfocus ring#47A8FFShape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity