Checkbox group

Several choices among options (Mantine's Checkbox.Group): a label, description and error around ray-checkbox elements; the value is the array of the checked ones. max caps how many; required asks for one.

Source on GitHub

In a form: required, one entry per value
Save
max: up to three
Select all (indeterminate)
Sizes, colors and disabled
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-checkbox-group> · RayCheckboxGroup

The group is the form control: one entry per checked value under name (like checkboxes sharing a name); the checkboxes inside lose their own name. It stops their change events and fires its own. role="group" named by its label.

PropertyAttributeTypeDefaultDescription
valuevalue (initial)arrayThe checked values. The value attribute: "a,b".
namename reflectsstringForm field name.
labellabelstringGroup label (also its accessible name).
descriptiondescriptionstringHelp text.
errorerrorstringError text.
requiredrequired reflectsbooleanAt least one must be checked.
disableddisabled reflectsbooleanDisables every checkbox.
maxmaxnumberAt most this many: the others are disabled once reached; the label shows the count.
orientationorientation reflectsvertical | horizontalverticalLayout of the checkboxes.
sizesize reflectsxs | sm | md | lg | xlSize of the checkboxes that set none.
colorcolor reflectsstringColor of the checkboxes that set none.
descriptionPositiondescription-position reflectsabove | belowaboveThe description before the checkboxes or after them.
EventDescription
changeThe user checked or unchecked one (read value).
inputSame moment as change.
SlotDescription
(default)ray-checkbox elements (also nested in other markup).