legend | LocalizedMessage | — | Group name, rendered in the Fieldset legend; it is the group's accessible name. |
children | ReactNode | — | {@link CheckboxCard } items. |
className | string | — | Classes on the host fieldset. Put overrides in @layer chroma.overrides. |
defaultValue | readonly string[] | — | Initial selected values when uncontrolled, and the values a native form reset restores. |
description | LocalizedMessage | — | Group helper copy linked through aria-describedby. |
disabled | boolean | false | Disables every card through native fieldset[disabled]. |
error | LocalizedMessage | — | Group error copy. When set, it is linked through aria-describedby and every card input is aria-invalid
with the invalid indicator. |
form | string | — | Id of the form that owns the inputs when they sit outside it. |
indicatorPosition | CheckboxCardsIndicatorPosition | CheckboxCardsIndicatorPosition.Start | Where each card draws its indicator. |
legendVisibility | FieldsetLegendVisibility | — | Hides the legend visually; the copy stays in the legend. Defaults to visible. |
name | string | — | Form field name shared by every card input. Omit to keep the cards out of form submission. |
onBlur | FocusEventHandler<HTMLElement> | — | Called once when focus leaves the whole group for somewhere outside it, such as the next field. It is not called
when focus moves between cards, so a form library validates on blur once per visit. |
onFocus | FocusEventHandler<HTMLElement> | — | Called once when focus enters the group from outside it. It is not called when focus moves between cards. Use it
with onBlur to track whether the group was touched. |
onValueChange | ((value: string[], details: ChangeDetails<CheckboxCardsValueChangeReason>) => void) | — | Called for every selection change, including controlled mode and form reset. InputChange is cancelable;
FormReset is not, because the browser restores the inputs either way. |
orientation | CheckboxCardsOrientation | CheckboxCardsOrientation.Vertical | Main-axis layout of the cards. |
readOnly | boolean | false | Makes every card read only: selected state shows and cards stay focusable, but activation changes nothing.
Each card shows a lock glyph opposite its indicator. |
ref | Ref<HTMLFieldSetElement> | — | Ref to the host fieldset. |
value | readonly string[] | — | Controlled selected values. undefined on the first render is uncontrolled. |