lion/packages/checkbox-group
CircleCI 2476211c21 chore: release new versions
- @lion/ajax@0.2.10
 - babel-plugin-extend-docs@0.1.0
 - @lion/button@0.5.12
 - @lion/calendar@0.7.2
 - @lion/checkbox-group@0.8.8
 - @lion/choice-input@0.8.2
 - @lion/core@0.5.2
 - @lion/dialog@0.4.17
 - @lion/field@0.12.2
 - @lion/fieldset@0.10.2
 - @lion/form-system@0.7.10
 - @lion/form@0.4.23
 - @lion/helpers@0.3.6
 - @lion/icon@0.4.4
 - @lion/input-amount@0.5.23
 - @lion/input-date@0.5.23
 - @lion/input-datepicker@0.11.6
 - @lion/input-email@0.6.7
 - @lion/input-iban@0.7.2
 - @lion/input-range@0.2.23
 - @lion/input@0.5.22
 - @lion/localize@0.9.2
 - @lion/overlays@0.13.2
 - @lion/radio-group@0.8.8
 - remark-extend@0.1.2
 - @lion/select-rich@0.15.3
 - @lion/select@0.5.22
 - @lion/steps@0.3.9
 - @lion/switch@0.8.2
 - @lion/tabs@0.2.9
 - @lion/textarea@0.5.23
 - @lion/tooltip@0.8.12
 - @lion/validate@0.9.2
2020-04-29 08:07:58 +00:00
..
src chore: move radio, checkbox and option 2020-03-04 17:33:09 +01:00
stories fix(overlays): support backdrop with local overlay 2020-03-20 16:32:19 +01:00
test chore: apply prettier formatting changes 2020-04-29 10:05:06 +02:00
CHANGELOG.md chore: release new versions 2020-04-29 08:07:58 +00:00
index.js chore: move radio, checkbox and option 2020-03-04 17:33:09 +01:00
lion-checkbox-group.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
lion-checkbox.js chore: move radio, checkbox and option 2020-03-04 17:33:09 +01:00
package.json chore: release new versions 2020-04-29 08:07:58 +00:00
README.md chore: remove pilot phase header 2020-04-29 10:05:06 +02:00

Checkbox Group

lion-checkbox-group component enhances the functionality of the native <input type="checkbox"> element. Its purpose is to provide a way for users to check multiple options amongst a set of choices, or to function as a single toggle.

You should use lion-checkbox inside this element.

Live Demo/Documentation

See our storybook for a live demo and API documentation

How to use

Installation

npm i --save @lion/checkbox-group
import '@lion/checkbox-group/lion-checkbox-group.js';
import '@lion/checkbox-group/lion-checkbox.js';

Example

<lion-checkbox-group
  name="scientists[]"
  label="Favorite scientists"
>
  <lion-checkbox label="Archimedes" .choiceValue=${'Archimedes'}></lion-checkbox>
  <lion-checkbox label="Francis Bacon" .choiceValue=${'Francis Bacon'}></lion-checkbox>
  <lion-checkbox label="Marie Curie" .choiceValue=${'Marie Curie'}></lion-checkbox>
</lion-checkbox-group>