StellarUI

<stellar-checkbox-group>

Properties

Preview

Markup

Copy
<stellar-checkbox-group

  label="Things for the cats"
  description="Select as few or as many as you'd like."
>
  <stellar-checkbox label="Catnip" value="catnip"></stellar-checkbox>
  <stellar-checkbox label="Food" value="food"></stellar-checkbox>
  <stellar-switch label="Treats" value="treats"></stellar-switch>
</stellar-checkbox-group>

API

Complete props, events, slots, and implementation notes for the shipped checkbox group.

Props

PropTypeDefaultNotes
labelstring''
descriptionstring''
orientationvertical | horizontalhorizontal
requiredbooleanfalse

Events

EventSourceNotes
custom eventsnonestellar-checkbox-group does not emit custom events.
descendant eventsnativeListen to grouped stellar-checkbox or stellar-switch children normally.

Slots

SlotNotes
defaultGrouped stellar-checkbox or stellar-switch children.
labelOptional rich label content. Overrides the label prop when present.
descriptionOptional helper content below the label. Overrides the description prop when present.

Notes

  • The public tag is `stellar-checkbox-group`, matching the shipped checkbox-group wrapper instead of inventing a second selection model.
  • It stays structural: the group owns shared label and description semantics, while slotted `stellar-checkbox` or `stellar-switch` children keep their own checked state and form behavior.
  • `required` only adds the visual required marker on the group label. Actual validity still belongs to descendant checkboxes or switches.
  • `orientation` controls whether slotted items wrap horizontally or stack vertically.
  • The wrapper does not intercept descendant events, so listen for `change` on the grouped controls normally.