ActionMenu - Admin Components

Note: This component is available since Medusa v2.21.0.

The ActionMenu component shows a dropdown of actions when the user clicks a trigger, which is a three-dot icon button by default. The Medusa Admin uses it in page headers, section headers, and table rows.

Code
import { ActionMenu } from "@medusajs/dashboard/components"

Example#

Use ActionMenu in a widget or UI route to show the actions of a record:

Code
1import { ActionMenu } from "@medusajs/dashboard/components"2import { PencilSquare, Trash } from "@medusajs/icons"3
4const BrandActions = ({ brand, onDelete }) => {5  return (6    <ActionMenu7      groups={[8        {9          actions: [10            {11              icon: <PencilSquare />,12              label: "Edit",13              to: `/brands/${brand.id}/edit`,14            },15          ],16        },17        {18          actions: [19            {20              icon: <Trash />,21              label: "Delete",22              onClick: () => onDelete(brand.id),23              disabled: brand.is_default,24              disabledTooltip:25                "You can't delete the default brand.",26            },27          ],28        },29      ]}30    />31  )32}

Medusa shows a separator between every two groups, and it doesn't render a group that has an empty actions array.


Props#

The component accepts the ActionMenuProps type:

Loading...

  • SectionRow: pass an ActionMenu as the row's actions.
Was this page helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Docs MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break
⇧↵