mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import { Checkbox } from "@/components/ui/checkbox"
|
|
import { Label } from "@/components/ui/label"
|
|
|
|
export function LabelDemo() {
|
|
return (
|
|
<div>
|
|
<div className="flex items-center space-x-2">
|
|
<Checkbox id="terms" />
|
|
<Label htmlFor="terms">Accept terms and conditions</Label>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|