Skip to content

UICheckbox

States
PropTypeDefaultDescription
labelstringrequiredLabel text shown next to the checkbox
checkedbooleanfalseWhether the checkbox is checked
onChange(checked: boolean) => voidCalled when toggled
import { UICheckbox } from "tango-api";
const [agreed, setAgreed] = useState(false);
<UICheckbox label="I agree to the terms" checked={agreed} onChange={setAgreed} />