|
|
||
|---|---|---|
| .. | ||
| src | ||
| stories | ||
| test | ||
| CHANGELOG.md | ||
| index.js | ||
| lion-button-switch.js | ||
| lion-input-switch.js | ||
| package.json | ||
| README.md | ||
Switch
lion-input-switch is a component that is used to toggle a property or feature on or off.
Features
- Get or set the checked state (boolean) -
choiceChecked() - Get or set the value of the choice -
choiceValue() - Pre-select an option by setting the
checkedboolean attribute
How to use
Installation
npm i --save @lion/switch
import '@lion/swith/lion-input-switch.js';
Example
<lion-input-switch name="airplaneMode" label="Airplane mode" checked></lion-input-switch>