2.0.0 • Published 1 year ago

@swc-uxp-wrappers/swatch v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

Description


  • For detailed README regarding @spectrum-web-components/swatch refer this link

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

Usage


yarn add @swc-uxp-wrappers/swatch

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

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

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

import { Swatch } from '@swc-uxp-wrappers/swatch';

Example


<sp-swatch></sp-swatch>