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.
See our storybook for a live demo and documentation
npm i --save @lion/switch
import '@lion/switch/lion-switch.js';
<lion-switch name="airplaneMode" label="Airplane mode" checked></lion-switch>