lion/packages/switch
CircleCI 610b908f62 chore: release new versions
- @lion/switch@0.1.1
2019-10-24 09:04:42 +00:00
..
src fix(switch): render function methods not slots 2019-10-24 11:02:30 +02:00
stories feat(switch): component to toggle a property on or off 2019-10-23 16:03:08 +02:00
test feat(switch): component to toggle a property on or off 2019-10-23 16:03:08 +02:00
CHANGELOG.md chore: release new versions 2019-10-24 09:04:42 +00:00
index.js feat(switch): component to toggle a property on or off 2019-10-23 16:03:08 +02:00
lion-button-switch.js feat(switch): component to toggle a property on or off 2019-10-23 16:03:08 +02:00
lion-input-switch.js feat(switch): component to toggle a property on or off 2019-10-23 16:03:08 +02:00
package.json chore: release new versions 2019-10-24 09:04:42 +00:00
README.md feat(switch): component to toggle a property on or off 2019-10-23 16:03:08 +02:00

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