@swc-uxp-wrappers/toast
v2.0.0
Published
UXP wrapper of the @spectrum-web-components/toast component
Downloads
8
Readme
Description
For detailed README regarding
@spectrum-web-components/toast
refer this linkDetailed specification regarding
@spectrum-web-components/toast
support in UXP through@swc-uxp-wrappers/toast
refer this link
Usage
yarn add @swc-uxp-wrappers/toast
Import the side effectful registration of <sp-toast>
via:
import '@swc-uxp-wrappers/toast/sp-toast.js';
When looking to leverage the Toast
base class as a type and/or for extension purposes, do so via:
import { Toast } from '@swc-uxp-wrappers/toast';
Example
<sp-toast></sp-toast>