Checkbox
Checkbox control, checkmark indicator, and horizontal/vertical group recipes.
import { Checkbox, CheckboxIndicator } from "@ilha/ui-sdk/checkbox";
import { checkbox, checkboxIndicator } from "coatx/checkbox";
export const TermsCheckbox = () => (
<Checkbox
aria-label="Accept terms"
class={(state) =>
checkbox({ checked: state.checked, indeterminate: state.indeterminate })
.class
}
>
<CheckboxIndicator
keepMounted
class={(state) => checkboxIndicator({ checked: state.checked }).class}
>
✓
</CheckboxIndicator>
</Checkbox>
);