Checkbox

A form control for selecting one or multiple options with a checked and unchecked state.

Loading...
import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";

export default function CheckboxDemo() {
  return (
    <div className="flex items-center gap-2">
      <Checkbox id="terms" />
      <Label htmlFor="terms">Accept terms and conditions</Label>
    </div>
  );
}

Installation

Usage

import { Checkbox } from "@/components/ui/checkbox";
<Checkbox />