lion/packages/switch
CircleCI 3869e82375 chore: release new versions
- @lion/button@0.3.31
 - @lion/calendar@0.2.9
 - @lion/checkbox-group@0.1.71
 - @lion/checkbox@0.1.64
 - @lion/choice-input@0.2.41
 - @lion/field@0.3.5
 - @lion/fieldset@0.1.63
 - @lion/form-system@0.0.78
 - @lion/form@0.1.70
 - @lion/input-amount@0.1.67
 - @lion/input-date@0.1.64
 - @lion/input-datepicker@0.2.9
 - @lion/input-email@0.1.64
 - @lion/input-iban@0.1.66
 - @lion/input@0.1.63
 - @lion/option@0.2.6
 - @lion/overlays@0.6.2
 - @lion/popup@0.3.8
 - @lion/radio-group@0.1.72
 - @lion/radio@0.1.64
 - @lion/select-rich@0.3.11
 - @lion/select@0.1.61
 - @lion/switch@0.1.2
 - @lion/textarea@0.1.66
 - @lion/tooltip@0.3.8
2019-10-25 13:36:39 +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-25 13:36:39 +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-25 13:36:39 +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>