lion/packages/option
CircleCI a5afaaeb27 chore: release new versions
- @lion/checkbox-group@0.7.0
 - @lion/checkbox@0.3.13
 - @lion/choice-input@0.7.0
 - @lion/field@0.10.0
 - @lion/fieldset@0.8.0
 - @lion/form-system@0.5.0
 - @lion/form@0.4.13
 - @lion/input-amount@0.5.13
 - @lion/input-date@0.5.13
 - @lion/input-datepicker@0.8.17
 - @lion/input-email@0.5.13
 - @lion/input-iban@0.5.14
 - @lion/input-range@0.2.13
 - @lion/input@0.5.13
 - @lion/option@0.5.3
 - @lion/radio-group@0.7.0
 - @lion/radio@0.4.3
 - @lion/select-rich@0.11.0
 - @lion/select@0.5.13
 - @lion/switch@0.5.15
 - @lion/textarea@0.5.14
2020-02-20 15:26:32 +00:00
..
src feat: flatten modelValue and remove checkedValue 2020-02-06 16:06:52 +01:00
stories fix: update links in stories 2020-01-23 18:24:38 +01:00
test feat: update to latest overlay system 2019-10-10 17:14:49 +02:00
CHANGELOG.md chore: release new versions 2020-02-20 15:26:32 +00:00
index.js feat: add lion-select-rich 2019-07-25 17:21:36 +02:00
lion-option.js feat: add lion-select-rich 2019-07-25 17:21:36 +02:00
package.json chore: release new versions 2020-02-20 15:26:32 +00:00
README.md feat: improved storybook demos 2020-01-13 13:58:03 +01:00

Option

lion-option is a selectable within a lion-select-rich

Live Demo/Documentation

See our storybook for a live demo and API documentation

How to use

Installation

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

Example

<lion-option .choiceValue=${'hotpink'} checked>Hotpink</lion-option>

You can also set the full modelValue for each option.

<lion-option .modelValue=${{ value: 'red', checked: false }}>Red</lion-option>

This component should not be used standalone. It is not accessible unless it is a child of a listbox-like element.

For more details on usage, please see lion-select-rich.