Ambient UI

Command Palette

Search for a command to run...

Checkbox

A control that allows the user to toggle between checked and not checked.

Usage

import { Checkbox } from "@smartacteam/ambient-web/checkbox";
<Checkbox />

Examples

With Label

<label className="flex items-center gap-2">
  <Checkbox />
  <span>Accept terms</span>
</label>

Controlled

const [checked, setChecked] = useState(false);
 
<Checkbox checked={checked} onCheckedChange={setChecked} />;