Did you know?dyk.si

Context Menu vs. Dropdown vs. Overflow Menu

All three are menus of actions; they differ in what opens them.

Context Menu

A context menu opens at the pointer on right-click or long-press.

Dropdown Menu (Menu Button)

A dropdown menu opens from a labeled button with an arrow, like Export ▾.

Overflow Menu (Kebab / Meatballs)

An overflow menu opens from a ⋮ or ⋯ icon when there is no room for more buttons.

Rule of thumb: Labeled button: dropdown. Dots icon: overflow. Right-click: context menu.

When to use each one

Context Menu

The menu that opens at the pointer when you right-click or long-press an item.

When to use it

For quick shortcuts on one item: copy, rename, delete.

Common mistake

Don’t make it the only place an action lives.

Dropdown Menu (Menu Button)

A button with a small arrow that drops down a list of actions.

When to use it

For a set of related actions: export as PDF or Excel.

Common mistake

If it stores a chosen value, use a select instead.

Overflow Menu (Kebab / Meatballs)

A three-dot button that opens extra actions. Vertical dots are a "kebab", horizontal ones are "meatballs".

When to use it

For secondary actions when there’s no room for more buttons.

Common mistake

Don’t hide the screen’s main action inside it.

Names in code

Context MenuDropdown MenuOverflow Menu
HTML/CSSoncontextmenu + role="menu"<button aria-haspopup="menu" aria-expanded><button aria-haspopup="menu">
React<ContextMenu><DropdownMenu><DropdownMenu>
Jetpack ComposeDropdownMenu + combinedClickable(onLongClick)DropdownMenuDropdownMenu + Icons.Default.MoreVert
SwiftUI.contextMenu { }MenuMenu { } label: Image(systemName: "ellipsis")

The full guide

The difference in one paragraph

All three are the same object, a floating list of actions, and only the trigger differs. A Context Menu has no visible trigger; you summon it on an item by right-click or long-press, and it appears at the pointer, so its actions belong to the thing under it. A Dropdown Menu (Menu Button) has a named button with a chevron; the name, such as Export or Sort, says what is inside. An Overflow Menu (Kebab / Meatballs) is a Dropdown Menu whose button is a three-dot icon; it exists because a toolbar, card or row ran out of room, so it holds the secondary actions.

How to tell them apart on screen

Position gives it away. A Context Menu opens exactly where you clicked or pressed, attached to no control, and flips near an edge. A Dropdown Menu hangs from the bottom of its button. An Overflow Menu hangs from its dots icon, usually at the end of a toolbar, card or table row.

Size and behaviour are nearly identical: one column, three to ten items, no title. None of them blocks the page: there is no backdrop, and a click outside, an item pick or Esc closes it. A Context Menu also closes on scroll, since its anchor is a point.

On desktop the Context Menu needs a right-click or Shift+F10; on mobile it becomes a long-press, often with a haptic tick and, on iOS, a preview. Dropdown and Overflow Menus look the same on both platforms; only the touch target grows.

Which one to choose

Actions on a table row (edit, duplicate, archive, delete). Pick an Overflow Menu at the end of each row, plus a right-click Context Menu with the same items for power users; the row's main action, usually open, stays on the row.

Export in several formats (PDF, CSV, Excel). Pick a Dropdown Menu labeled Export: the name says what you get, and formats are actions, not a stored setting. A value that must stay visible, like page size, is a Select.

A file browser or code editor where the user is already pointing at an object. Pick a Context Menu with rename, copy path and delete, mirrored in a visible menu for touch and screen reader users.

A card header with share, report, mute and block beside a Reply button. Pick an Overflow Menu: Reply stays visible as the primary action; the rare ones go behind the dots.

Confirming a delete. None of them: a Delete item in any menu should open a confirmation dialog or run at once with an undo toast. Menus choose, they do not confirm.

Mistakes teams make

Hiding the primary action behind the dots. Add to cart inside an Overflow Menu loses most of its clicks. Fix: the main action is always a visible button.

Making the Context Menu the only route. A Rename that exists only on right-click is invisible on touch and to anyone who never right-clicks. Fix: every context action also lives in a visible control.

Using a Dropdown Menu as a value picker. A Sort by button that forgets the pick leaves people guessing. Fix: a Select, or checkable items that show the current value in the button label.

An unlabeled dots button. Screen readers announce it as button, nothing more. Fix: a name such as More options, or better, More actions for Invoice 1042, through aria-label or contentDescription.

Accessibility and keyboard notes

The trigger. A Dropdown Menu or Overflow Menu button carries aria-haspopup=menu and aria-expanded, and opens on Enter, Space or Arrow Down. A Context Menu has no button, so give it a keyboard route: Shift+F10 or the Menu key on the focused item; in browsers the contextmenu event fires for both.

Inside the menu. Use role=menu with menuitem children. Arrow keys move, Home and End jump, Enter activates, Tab leaves. Esc closes and returns focus to the trigger, or, for a Context Menu, to the item it was opened on.

Touch. The dots button needs a 44 pt target on iOS and 48 dp on Android, and a long-press should fire after about half a second with haptic feedback. In Jetpack Compose the IconButton still needs a contentDescription; in SwiftUI use Label("More", systemImage: "ellipsis"), not a bare image.

How to ask a coding agent for it

Name the element, the trigger, what stays visible, and what Esc does:

"Add a Context Menu to each file row, opened by right-click and Shift+F10, with Rename, Duplicate and Delete. Delete opens a confirmation dialog; the same items also appear in the row's Overflow Menu."

"Replace the three Export buttons with one Dropdown Menu (Menu Button) labeled Export: PDF, CSV, Excel. Use aria-haspopup=menu, arrow-key navigation, and return focus to the button on Esc."

"In the Compose card header, move Share, Report and Mute into an Overflow Menu: IconButton with Icons.Default.MoreVert and contentDescription More options. Keep Reply visible."

Frequently asked questions

Is a Context Menu a modal?

No. None of the three is modal: there is no backdrop, and a click outside, Esc or a scroll closes it.

Kebab or meatballs: which should I use?

Vertical dots are the Android and Material convention; horizontal dots are common on iOS and the web. Pick one per product and label it More options.

Can I build all three with the same component?

Yes. Radix, Compose and SwiftUI use one menu primitive; only the trigger changes: a contextmenu handler, a labeled button, or an icon button.

What is the difference between a Dropdown Menu and a Select?

A Dropdown Menu runs actions and remembers nothing; a Select stores a value and keeps showing it in the field.