
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@spectrum-web-components/menu
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 />`. Often a `<sp-menu />` element will appear in a `<sp-popover />` element so that it display
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 />
. Often a <sp-menu />
element will appear in a <sp-popover />
element so that it displays as a togglig menu.
<sp-menu>
<sp-menu-item>
Deselect
</sp-menu-item>
<sp-menu-item>
Select Inverse
</sp-menu-item>
<sp-menu-item>
Feather...
</sp-menu-item>
<sp-menu-item>
Select and Mask...
</sp-menu-item>
<sp-menu-item>
Save Selection
</sp-menu-item>
<sp-menu-item disabled>
Make Work Path
</sp-menu-item>
</sp-menu>
<sp-popover open style="position: relative">
<sp-menu>
<sp-menu-item>
Deselect
</sp-menu-item>
<sp-menu-item>
Select Inverse
</sp-menu-item>
<sp-menu-item>
Feather...
</sp-menu-item>
<sp-menu-item>
Select and Mask...
</sp-menu-item>
<sp-menu-item>
Save Selection
</sp-menu-item>
<sp-menu-item disabled>
Make Work Path
</sp-menu-item>
</sp-menu>
</sp-popover>
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, or by labeling groups of items in a longer list with a <sp-menu-group />
element which provides a slot for a group header; [slot="header"]
.
<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-item>
Menu Item 3a
</sp-menu-item>
<sp-menu-divider></sp-menu-divider>
<sp-menu-item>
Menu Item 1b
</sp-menu-item>
<sp-menu-item>
Menu Item 2b
</sp-menu-item>
</sp-menu>
</sp-popover>
<sp-popover open style="position: relative">
<sp-menu>
<sp-menu-group>
<span slot="header">New York</span>
<sp-menu-item>
Central Park
</sp-menu-item>
<sp-menu-item>
Prospect Park
</sp-menu-item>
</sp-menu-group>
<sp-menu-divider></sp-menu-divider>
<sp-menu-group>
<span slot="header">San Fransisco</span>
<sp-menu-item>
Golden Gate Park
</sp-menu-item>
<sp-menu-item>
Lake Merced Park
</sp-menu-item>
</sp-menu-group>
</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>`. Often a `<sp-menu>` element will appear in a `<sp-popover>` element so that it displays as a togg
The npm package @spectrum-web-components/menu receives a total of 3,592 weekly downloads. As such, @spectrum-web-components/menu popularity was classified as popular.
We found that @spectrum-web-components/menu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.