Toggle
Actions · upstream shadcn/ui, Linear 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#34343A--foregroundtext#F7F8F8--mutedfill#0F1011--destructiveerror#EB5757--ringfocus ring#5E69D1Shape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity