UICheckbox
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
label | string | required | Label text shown next to the checkbox |
checked | boolean | false | Whether the checkbox is checked |
onChange | (checked: boolean) => void | — | Called when toggled |
import { UICheckbox } from "tango-api";
const [agreed, setAgreed] = useState(false);<UICheckbox label="I agree to the terms" checked={agreed} onChange={setAgreed} />