2.0.0 • Published 1 year ago
@swc-uxp-wrappers/asset v2.0.0
Description
For detailed README regarding
@spectrum-web-components/assetrefer this linkDetailed specification regarding
@spectrum-web-components/assetsupport in UXP through@swc-uxp-wrappers/assetrefer this link
Usage
yarn add @swc-uxp-wrappers/assetImport 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
2.0.0
1 year ago