mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { Label } from "@/registry/default/ui/label"
|
|
import { Switch } from "@/registry/default/ui/switch"
|
|
|
|
export default function SwitchDemo() {
|
|
return (
|
|
<div className="flex items-center space-x-2">
|
|
<Switch id="airplane-mode" />
|
|
<Label htmlFor="airplane-mode">Airplane Mode</Label>
|
|
</div>
|
|
)
|
|
}
|