mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 06:28:37 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
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>
|
|
)
|
|
}
|