@swc-uxp-wrappers/menu

2.0.0 • Public • Published

Description



This is UXP wrapper for `@spectrum-web-components/menu` package
  • For detailed README regarding @spectrum-web-components/menu refer this link

  • Detailed specification regarding @spectrum-web-components/menu support in UXP through @swc-uxp-wrappers/menu refer this link

Usage



yarn add @swc-uxp-wrappers/menu

Import the side effectful registration of <sp-menu> via:

import '@swc-uxp-wrappers/menu/sp-menu.js';

When looking to leverage the Menu base class as a type and/or for extension purposes, do so via:

import { Menu } from '@swc-uxp-wrappers/menu';

Example



<sp-menu></sp-menu>

Known Issues

  • Multi select variant does not work
  • Submenu is not supported
  • Performance issue observed when one clicks multiple times on a menu item

/@swc-uxp-wrappers/menu/

    Package Sidebar

    Install

    npm i @swc-uxp-wrappers/menu

    Weekly Downloads

    42

    Version

    2.0.0

    License

    Apache-2.0

    Unpacked Size

    19.4 kB

    Total Files

    19

    Last publish

    Collaborators

    • inasirhussain
    • ledzepfan
    • bhatiapankaj