FormCheckboxGroup

Examples

<FormCheckboxGroup
  @errors={{this.validationErrors}}
  @label="Checkbox group"
  as |Checkbox|
>
  <Checkbox
    @name="isChecked"
    @label="Checkbox"
    @checked={{this.isChecked}}
    @onChange={{this.setIsChecked}}
  />

  <Checkbox
    @name="isChecked2"
    @label="Checkbox 2"
    @checked={{this.isChecked2}}
    @onChange={{this.setIsChecked2}}
  />
</FormCheckboxGroup>

API

Arg Type Description Required Default
containerClass string CSS classes to be added in the container element - -
errors string | string[] A list of errors or a single text describing the error - -
hasError boolean If has errors - -
hasSubmitted boolean If the form has been submitted, used to force displaying errors - -
hint string A help text to be displayed - -
isInline boolean If the Checkbox should be in one line - -
label string The group label - -
onChange (value: unknown, event: Event) => void Default callback added to the yielded FormCheckbox component, called when onchange is triggered - -
size 'sm' | 'lg' The size - -