Files
shadcn-ui/apps/v4/examples/base/switch-description.tsx
2026-01-19 21:34:56 +04:00

24 lines
600 B
TypeScript

import {
Field,
FieldContent,
FieldDescription,
FieldLabel,
} from "@/examples/base/ui/field"
import { Switch } from "@/examples/base/ui/switch"
export function SwitchDescription() {
return (
<Field orientation="horizontal" className="max-w-sm">
<FieldContent>
<FieldLabel htmlFor="switch-focus-mode">
Share across devices
</FieldLabel>
<FieldDescription>
Focus is shared across devices, and turns off when you leave the app.
</FieldDescription>
</FieldContent>
<Switch id="switch-focus-mode" />
</Field>
)
}