
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@igloo-ui/action-menu
Advanced tools
This component is used to display a menu that will contain a list of menu options. The menu is dismissible if you click outside the dropdown.
This component is used to display a menu that will contain a list of menu options. The menu is dismissible if you click outside the dropdown.
To install @igloo-ui/action-menu in your project, you will need to run the following command using npm:
npm install @igloo-ui/action-menu
If you prefer Yarn, use the following command instead:
yarn add @igloo-ui/action-menu
Then to use the component in your code just import it!
import ActionMenu from '@igloo-ui/action-menu';
import Button from '@igloo-ui/button';
<ActionMenu
options={[
{
label: 'Add Item',
value: 'add',
},
{
label: 'Delete Item',
value: 'delete',
disabled: true,
},
{
label: 'Copy Item',
value: 'copy',
},
]}
renderReference={(refProps) => {
return (
<Button appearance="secondary" {...refProps}>
Button
</Button>
);
}}
/>;
import ActionMenu from '@igloo-ui/action-menu';
import Button from '@igloo-ui/button';
<ActionMenu
options={[
{
label: 'Add Item',
value: 'add',
icon: <AddSolid size="medium" />,
onClick: () => {
alert('"Add Item" was clicked');
},
},
{
label: 'Delete Item',
value: 'delete',
icon: <Delete size="medium" />,
onClick: () => {
alert('"Delete Item" was clicked');
},
closeOnSelect: () => {
// Put some condition here
// It can also just be a boolean and not a function
return false;
},
},
{
label: 'Copy Item',
value: 'copy',
icon: <Copy size="medium" />,
onClick: () => {
alert('"Copy Item" was clicked');
},
},
]}
renderReference={(refProps) => {
return (
<Button appearance="secondary" {...refProps}>
Button
</Button>
);
}}
/>;
FAQs
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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.