2.0.0 • Published 1 year ago

@swc-uxp-wrappers/overlay v2.0.0

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

Description


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

  • Detailed 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