@swc-uxp-wrappers/switch

2.0.0 • Public • Published

Description



This is UXP wrapper for `@spectrum-web-components/switch` package
  • For detailed README regarding @spectrum-web-components/switch refer this link

  • Detailed specification regarding @spectrum-web-components/switch support in UXP through @swc-uxp-wrappers/switch refer this link

Usage



yarn add @swc-uxp-wrappers/switch

Import the side effectful registration of <sp-switch> via:

import '@swc-uxp-wrappers/switch/sp-switch.js';

When looking to leverage the Switch base class as a type and/or for extension purposes, do so via:

import { Switch } from '@swc-uxp-wrappers/switch';

Example



<sp-switch></sp-switch>

Known Issues

  • Tab navigation does not work
  • Line break is seen when switch is used for scale=large

Package Sidebar

Install

npm i @swc-uxp-wrappers/switch

Weekly Downloads

18

Version

2.0.0

License

Apache-2.0

Unpacked Size

7.51 kB

Total Files

7

Last publish

Collaborators

  • inasirhussain
  • ledzepfan
  • bhatiapankaj