lion/packages/switch
CircleCI d44f6d85fe chore: release new versions
- @lion/switch@0.1.3
2019-10-28 15:40:17 +00:00
..
src fix(switch): cross-browser fixes 2019-10-28 16:37:37 +01:00
stories fix(switch): cross-browser fixes 2019-10-28 16:37:37 +01:00
test fix(switch): cross-browser fixes 2019-10-28 16:37:37 +01:00
CHANGELOG.md chore: release new versions 2019-10-28 15:40:17 +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-28 15:40:17 +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>