NEURALNG

ACCESSIBILITY

Native behavior first

Checkbox retains browser focus, label activation, validation, form submission and keyboard behavior.

Native semantics

Both controls render a real input[type=checkbox]. No synthetic checkbox role or keyboard emulation is required.

Accessible names

Prefer visible projected label text. Use ariaLabel only when the visual design has no text label.

Keyboard

Tab focuses the native input and Space changes its value. Readonly remains focusable but blocks mutation; disabled is removed from focus.

Mixed state

TriState maps null to the native indeterminate property and aria-checked="mixed". Binary Checkbox also accepts a presentation-only indeterminate input for collection controls while its model remains boolean.

Disabled versus readonly

Disabled prevents focus and native submission. Readonly is an accessible NeuralNg behavior that preserves focus and the current value.

Field state

Descriptions are joined through aria-describedby; invalid, required and pending map to their corresponding ARIA attributes.