lion/packages/switch
CircleCI b3b1abe200 chore: release new versions
- @lion/switch@0.1.4
2019-10-30 15:23:46 +00:00
..
src chore(switch): rename 2019-10-30 16:21:30 +01:00
stories chore(switch): rename 2019-10-30 16:21:30 +01:00
test chore(switch): rename 2019-10-30 16:21:30 +01:00
CHANGELOG.md chore: release new versions 2019-10-30 15:23:46 +00:00
index.js chore(switch): rename 2019-10-30 16:21:30 +01:00
lion-switch-button.js chore(switch): rename 2019-10-30 16:21:30 +01:00
lion-switch.js chore(switch): rename 2019-10-30 16:21:30 +01:00
package.json chore: release new versions 2019-10-30 15:23:46 +00:00
README.md chore(switch): rename 2019-10-30 16:21:30 +01:00

Switch

lion-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 checked boolean attribute

How to use

Installation

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

Example

<lion-switch name="airplaneMode" label="Airplane mode" checked></lion-switch>