Toggle
Actions · upstream shadcn/ui, Claude 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#D1CFC5--foregroundtext#141413--mutedfill#F0EEE6--destructiveerror#BF4D43--ringfocus ring#C46849Shape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity