snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
23
apps/v4/examples/aria/switch-description.tsx
Normal file
23
apps/v4/examples/aria/switch-description.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import {
|
||||
Field,
|
||||
FieldContent,
|
||||
FieldDescription,
|
||||
FieldLabel,
|
||||
} from "@/styles/aria-nova/ui/field"
|
||||
import { Switch } from "@/styles/aria-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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user