mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldTitle,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { Switch } from "@/styles/base-nova/ui/switch"
|
|
|
|
export function SwitchChoiceCard() {
|
|
return (
|
|
<FieldGroup className="w-full max-w-sm">
|
|
<FieldLabel htmlFor="switch-share">
|
|
<Field orientation="horizontal">
|
|
<FieldContent>
|
|
<FieldTitle>Share across devices</FieldTitle>
|
|
<FieldDescription>
|
|
Focus is shared across devices, and turns off when you leave the
|
|
app.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
<Switch id="switch-share" />
|
|
</Field>
|
|
</FieldLabel>
|
|
<FieldLabel htmlFor="switch-notifications">
|
|
<Field orientation="horizontal">
|
|
<FieldContent>
|
|
<FieldTitle>Enable notifications</FieldTitle>
|
|
<FieldDescription>
|
|
Receive notifications when focus mode is enabled or disabled.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
<Switch id="switch-notifications" defaultChecked />
|
|
</Field>
|
|
</FieldLabel>
|
|
</FieldGroup>
|
|
)
|
|
}
|