@swc-uxp-wrappers/overlay
v2.0.0
Published
UXP wrapper of the @spectrum-web-components/overlay component
Downloads
19
Readme
Description
For detailed README regarding
@spectrum-web-components/overlay
refer this linkDetailed specification regarding
@spectrum-web-components/overlay
support in UXP through@swc-uxp-wrappers/overlay
refer this link
Usage
yarn add @swc-uxp-wrappers/overlay
Import the side effectful registration of <sp-overlay>
via:
import '@swc-uxp-wrappers/overlay/sp-overlay.js';
When looking to leverage the Overlay
base class as a type and/or for extension purposes, do so via:
import { Overlay } from '@swc-uxp-wrappers/overlay';
Example
<sp-overlay></sp-overlay>
Known Issues
- Styling of popover and tip rendered is incorrect when used inside overlay
- Nested overlay is not supported
- The toast dissapears when hovered on it inside overlay
- Longpress attribute does not work with keyboard press event