TkxCheckbox
import { TkxCheckbox } from 'tekivex-ui';Basic — controlled
const [checked, setChecked] = useState(true);<TkxCheckbox checked={checked} onChange={setChecked} label="I agree to the terms" />States
Section titled “States”States
<TkxCheckbox checked={true} onChange={...} label="Checked" /><TkxCheckbox checked={false} onChange={...} label="Unchecked" /><TkxCheckbox isIndeterminate label="Indeterminate" /><TkxCheckbox checked={true} disabled label="Disabled (checked)" />Color schemes
Section titled “Color schemes”Color schemes
With error message
Section titled “With error message”With error message
You must accept to continue
| Prop | Type | Required | Description |
|---|---|---|---|
label | ReactNode | ||
hint | string | ||
isInvalid | boolean | ||
errorMessage | string | ||
isIndeterminate | boolean | ||
size | CheckboxSize | ||
colorScheme | 'primary' | 'success' | 'danger' | 'warning' |
Accessibility
Section titled “Accessibility”- Keyboard navigation supported on all interactive elements
:focus-visibleoutline at 2px (theme-tokenprimary)- ARIA roles and properties applied per WAI-ARIA 1.2
- Respects
prefers-reduced-motion - Minimum 44×44 touch target where applicable
Source
Section titled “Source”The implementation lives at src/components/TkxCheckbox.tsx.
For a full interactive sandbox where you can change every prop and watch the rendered checkbox update in real time, open the playground.