snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
11
apps/v4/examples/aria/field-switch.tsx
Normal file
11
apps/v4/examples/aria/field-switch.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Field, FieldLabel } from "@/styles/aria-nova/ui/field"
|
||||
import { Switch } from "@/styles/aria-nova/ui/switch"
|
||||
|
||||
export default function FieldSwitch() {
|
||||
return (
|
||||
<Field orientation="horizontal" className="w-fit">
|
||||
<FieldLabel htmlFor="2fa">Multi-factor authentication</FieldLabel>
|
||||
<Switch id="2fa" />
|
||||
</Field>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user