A control that allows the user to toggle between on and off. Every switch variant toggles reliably with Radix UI and Base UI semantics.
npx shadcn@latest add @shadcnuikit/switch4
switch4