lion/packages/option
2020-02-19 21:51:48 +01: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-10 14:21:07 +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 fix: reduce storybook chunck sizes for more performance 2020-02-19 21:51:48 +01: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.