mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-15 20:01:35 +00:00
12 lines
315 B
TypeScript
12 lines
315 B
TypeScript
import { Field, FieldLabel } from "@/examples/base/ui/field"
|
|
import { Switch } from "@/examples/base/ui/switch"
|
|
|
|
export function SwitchBasic() {
|
|
return (
|
|
<Field orientation="horizontal">
|
|
<Switch id="switch-basic" />
|
|
<FieldLabel htmlFor="switch-basic">Airplane Mode</FieldLabel>
|
|
</Field>
|
|
)
|
|
}
|