2.0.0 • Published 1 year ago

@swc-uxp-wrappers/asset v2.0.0

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

Description


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

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

Usage


yarn add @swc-uxp-wrappers/asset

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

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

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

import { Asset } from '@swc-uxp-wrappers/asset';

Example


<sp-asset></sp-asset>

Known Issues

  • For variant file or folder, one needs to explicitly set height and/or width in the plugin