lion/packages/checkbox-group
CircleCI 04db59c967 chore: release new versions
- @lion/checkbox-group@0.8.0
 - @lion/checkbox@0.3.15
 - @lion/choice-input@0.7.2
 - @lion/field@0.11.0
 - @lion/fieldset@0.9.0
 - @lion/form-system@0.6.0
 - @lion/form@0.4.15
 - @lion/input-amount@0.5.15
 - @lion/input-date@0.5.15
 - @lion/input-datepicker@0.9.0
 - @lion/input-email@0.6.0
 - @lion/input-iban@0.6.0
 - @lion/input-range@0.2.15
 - @lion/input@0.5.15
 - @lion/option@0.5.5
 - @lion/radio-group@0.8.0
 - @lion/radio@0.4.5
 - @lion/select-rich@0.11.2
 - @lion/select@0.5.15
 - @lion/switch@0.6.0
 - @lion/textarea@0.5.16
 - @lion/validate@0.7.0
2020-03-01 23:08:13 +00:00
..
src feat: api normalisation formElements and values 2020-02-20 14:17:13 +01:00
stories feat(validate): use static validatorName instead of instance name (#600) 2020-02-26 15:25:12 +01:00
test fix(checkbox-group): throw if name does not contain [] 2020-02-10 18:26:10 +01:00
CHANGELOG.md chore: release new versions 2020-03-01 23:08:13 +00:00
index.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
lion-checkbox-group.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
package.json chore: release new versions 2020-03-01 23:08:13 +00:00
README.md fix: move documentation from readme to mdx 2020-02-10 19:16:33 +01: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's 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 @lion/checkbox-group
import '@lion/checkbox/lion-checkbox.js';
import '@lion/checkbox-group/lion-checkbox-group.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>