TsaiCheckbox¶
A controlled checkbox with optional label, description, error state, label position, and tristate behavior.
TsaiCheckbox(
value: accepted,
label: 'Accept terms',
description: 'Required to continue',
onChanged: (value) => setState(() => accepted = value!),
)
Set onChanged to null to disable interaction. With tristate: true, values
cycle through false, true, and null. isError styles the unchecked state.