# KptCheckbox (kpt-checkbox)
A checkbox on Signal Forms (`FormCheckboxControl`, the `checked` model).
Import: `import { KptCheckbox } from '@konce-pt/angular';`
## Usage
## Inputs
- `checked`: model (the FormCheckboxControl contract)
- `label`: string
- `disabled` / `invalid` / `touched`: boolean (bound by FormField); the `touch` output (blur)
- `toggleMotion`: 'spring' | 'fade' | 'none' (default from `provideKptMotion`, else `spring`) - see "Toggle motion"
## Screen reader and keyboard
`indeterminate`: model - the "some selected" state for a "select all" box (a dash in the
box; screen readers say "partially checked"). A click clears it and sets `checked`.
## Label and description
`id` goes to the native field - the host never carries it; without one it is generated. Inside
`kpt-form-field` the control links itself: the wrapper's `label[for]` points at it and the hint or
error is added to `aria-describedby`, so `controlId` is not needed. Without a wrapper, name it with
`ariaLabel`. Inside `kpt-form-field` the box gets both names: the wrapper label and its own `label`.
## Toggle motion
`toggleMotion`: `spring` - the box pops and the check mark draws itself as a stroke; `fade` - a calm colour and mark transition; `none` - no
motion. The bounce is started by the change handler, so a control that is checked on load does not
move. With no value it takes `toggle` from `provideKptMotion` (default `spring`); `enabled: false` and the
system "reduce motion" setting always win.
With `spring` the error gets a signal too: when the field turns invalid (`invalid` and `touched`),
an error-coloured ring spreads from the box and fades, and the box shakes briefly. An error present on
load stays still, and a repeated submit with the field still invalid does not replay it. Inside an
invalid form field the field already shakes, so the checkbox adds only the ring.
## Tokens
`--kpt-color-primary`, `--kpt-color-on-primary`, `--kpt-form-field-border`, `--kpt-form-field-border-error`.
## Read-only and required
`readonly` keeps the box focusable but blocks the click and Space (`aria-readonly`) - the native attribute does not work on checkboxes.