mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-25 13:46:07 +00:00
24 lines
606 B
TypeScript
24 lines
606 B
TypeScript
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { Switch } from "@/styles/base-nova/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>
|
|
)
|
|
}
|