Sizes and states
Off, on, indeterminate, and both disabled, in the five sizes — the box, the tick, the dash and the label scale together. indeterminate and checked are separate inputs and the dash wins while both are set. The lengths come from the shared --gog-control-checkbox-* scale that gog-radio-group reads too, which is why a checkbox and a radio line up on a form.
xsm
sm
md
lg
slg
@for (size of sizes; track size) {
<div>
<span>{{ size }}</span>
<gog-checkbox [size]="size" label="Off" />
<gog-checkbox [size]="size" label="On" [checked]="true" />
<!-- indeterminate wins while both are set: the "some of them" state. -->
<gog-checkbox [size]="size" label="Mixed" indeterminate />
<gog-checkbox [size]="size" label="Disabled" disabled />
<gog-checkbox [size]="size" label="Disabled, on" disabled [checked]="true" />
</div>
}