Koala logo Design
Esc
No matches for “
↑↓ navigate open Esc close
Components Checkboxes

Checkboxes

Square boolean checkbox, backed by a real input so it round-trips through ASP.NET model binding without JavaScript.

<koala-checkbox>

Canonical

Use for compact boolean choices, especially inside dense tables where a switch is too heavy. The hidden false-default pattern is handled internally.

States

3 states
Off
On
Disabled

Props

9 attributes
Attribute Values Notes
forModelExpression?Property-bound checkboxes. Mutually exclusive with name.
namestring?Form field name for dynamic-name checkboxes. Pair with checked.
checkedboolInitial checked state when using name.
valuestringCheckbox value. Defaults to "true"; set for multi-select patterns.
labelstring?Optional inline label rendered next to the checkbox.
aria-labelstring?Accessible label for icon-only or table-cell checkboxes.
disabledboolRenders a disabled checkbox and skips the hidden false-default input.
x-model / x-on:changestring?Optional Alpine bindings for local state or auto-submit flows.

Do & don't

Do Use checkboxes for compact repeated boolean controls in tables and matrices.
Don't Don't use a checkbox for mutually-exclusive choices. Use a radio group or segmented control.