@swc-uxp-wrappers/asset
v2.0.0
Published
UXP wrapper of the @spectrum-web-components/asset component
Downloads
4
Readme
Description
For detailed README regarding
@spectrum-web-components/asset
refer this linkDetailed 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