Co-authored-by: Joren Broekema <Joren.Broekema@ing.com> Co-authored-by: Alex Ghiu <Alex.Ghiu@ing.com> Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com> |
||
|---|---|---|
| .. | ||
| src | ||
| stories | ||
| test | ||
| CHANGELOG.md | ||
| index.js | ||
| lion-switch-button.js | ||
| lion-switch.js | ||
| package.json | ||
| README.md | ||
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>