lion/packages/switch
2020-03-04 17:33:09 +01:00
..
src fix: normalize subclasser apis 2020-02-27 11:07:12 +01:00
stories chore(switch): add docu for checked-changed handler (#611) 2020-03-04 17:33:09 +01:00
test feat: finalize validation and adopt it everywhere 2019-11-18 15:30:08 +01:00
CHANGELOG.md chore: release new versions 2020-03-02 13:34:59 +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(switch): add docu for checked-changed handler (#611) 2020-03-04 17:33:09 +01:00
README.md feat: improved storybook demos 2020-01-13 13:58:03 +01:00

Switch

lion-switch is a component that is used to toggle a property or feature on or off. Toggling the component on or off should have immediate action and should not require pressing any additional buttons (submit) to confirm what just happened. The Switch is not a Checkbox in disguise and should not be used as part of a form.

Live Demo/Documentation

See our storybook for a live demo and documentation

How to use

Installation

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

Example

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