Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@spectrum-web-components/menu-item
Advanced tools
An `<sp-menu />` is used for creating a menu list. The various elements inside a menu are given as `<sp-menu-group/>`, `<sp-menu-item />`, or `<sp-menu-divider />`.
An <sp-menu />
is used for creating a menu list. The various elements inside a menu are given as <sp-menu-group/>
, <sp-menu-item />
, or <sp-menu-divider />
.
Menus are a collection of <sp-menu-items />
that can be modified to be disabled
or selected
.
<sp-menu>
<sp-menu-item>
Active Menu Item
</sp-menu-item>
<sp-menu-item disabled>
Disabled Menu Item
</sp-menu-item>
<sp-menu-item selected>
Selected Menu Item
</sp-menu-item>
</sp-menu>
The content of a menu can be organized by either adding <sp-menu-divider />
elements to a flat list.
<sp-popover open style="position: relative">
<sp-menu>
<sp-menu-item>
Menu Item 1a
</sp-menu-item>
<sp-menu-item>
Menu Item 2a
</sp-menu-item>
<sp-menu-divider></sp-menu-divider>
<sp-menu-item>
Menu Item 3a
</sp-menu-item>
<sp-menu-item>
Menu Item 1b
</sp-menu-item>
<sp-menu-divider></sp-menu-divider>
<sp-menu-item>
Menu Item 2b
</sp-menu-item>
</sp-menu>
</sp-popover>
<sp-menu />
, <sp-menu-group />
, and <sp-menu-item />
each deliver a different part of the wai-aria "menu" pattern and support the menu
, group
, and menuitem
roles respectively. To support ease of keyboard navigation, only the first active or first selected <sp-menu-item />
can be accessed in the tab order. Once the focus has entered the menu the up and down arrow keys can be used to access the rest of the menu.
FAQs
An `<sp-menu />` is used for creating a menu list. The various elements inside a menu are given as `<sp-menu-group/>`, `<sp-menu-item />`, or `<sp-menu-divider />`.
The npm package @spectrum-web-components/menu-item receives a total of 11 weekly downloads. As such, @spectrum-web-components/menu-item popularity was classified as not popular.
We found that @spectrum-web-components/menu-item demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.