mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 07:04:20 +00:00
18 lines
549 B
TypeScript
18 lines
549 B
TypeScript
import { Label } from "@/examples/base/ui/label"
|
|
import { Switch } from "@/examples/base/ui/switch"
|
|
|
|
export function SwitchSizes() {
|
|
return (
|
|
<div className="flex flex-col gap-12">
|
|
<div className="flex items-center gap-2">
|
|
<Switch id="switch-size-sm" size="sm" />
|
|
<Label htmlFor="switch-size-sm">Small</Label>
|
|
</div>
|
|
<div className="flex items-center gap-2">
|
|
<Switch id="switch-size-default" size="default" />
|
|
<Label htmlFor="switch-size-default">Default</Label>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|