@spectrum-web-components/switch

adobe
esm
@spectrum-web-components/switch JS library homepage @spectrum-web-components/switch JS library on GitHub @spectrum-web-components/switch JS library on npm Download @spectrum-web-components/switch JS library

An `<sp-switch>` is used to turn an option on or off. Switches allow users to select the state of a single option at a time. Use a switch rather than a checkbox when activating (or deactivating) an option, instead of selecting.

Version 1.6.0 License Apache-2.0
@spectrum-web-components/switch JS library homepage
@spectrum-web-components/switch JS library on GitHub
@spectrum-web-components/switch JS library on npm
Download @spectrum-web-components/switch JS library
Keywords
design-systemspectrumadobeadobe-spectrumweb componentsweb-componentslit-elementlit-htmlcomponentcss
INSTALL
Type:
<script type="module"> import spectrumWebComponentsswitch from 'https://cdn.jsdelivr.net/npm/@spectrum-web-components/switch@1.6.0/+esm' </script>
Learn more