mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-02 00:54:15 +00:00
12 lines
323 B
TypeScript
12 lines
323 B
TypeScript
import { Label } from "@/examples/base/ui/label"
|
|
import { Switch } from "@/examples/base/ui/switch"
|
|
|
|
export function SwitchWithLabel() {
|
|
return (
|
|
<div className="flex items-center gap-2">
|
|
<Switch id="switch-bluetooth" defaultChecked />
|
|
<Label htmlFor="switch-bluetooth">Bluetooth</Label>
|
|
</div>
|
|
)
|
|
}
|