Loading dashboard...
Loading dashboard...
import { Switch } from "@/components/ui/switch"<Switch />Focus is shared across devices, and turns off when you leave the app.
Card-style selection where FieldLabel wraps the entire Field for a clickable card pattern.
Add the disabled prop to the Switch component to disable the switch. Add the data-disabled prop to the Field component for styling.
Add the aria-invalid prop to the Switch component to indicate an invalid state. Add the data-invalid prop to the Field component for styling.
You must accept the terms and conditions to continue.
Use the size prop to change the size of the switch.
See the Radix Switch documentation.
import { Label } from "@/components/ui/label"
import { Switch } from "@/components/ui/switch"
import {
Field,
FieldContent,import {
Field,
FieldContent,import { Field, FieldLabel } from "@/components/ui/field"
import { Switch } from "@/components/ui/switch"
import {
Field,
FieldContent,import { Field, FieldGroup, FieldLabel } from "@/components/ui/field"
import { Switch } from "@/components/ui/switch"