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