The Switch component is a control that allows the user to toggle between checked and not checked. This component is built on Radix UI primitives and styled with Shadcn UI.
Readonly
Optional
Use values for destructuring assignments instead.
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
The Switch component is a control that allows the user to toggle between checked and not checked. This component is built on Radix UI primitives and styled with Shadcn UI.
See