Skip to content

Menu

Free

A list of actions that opens from a button. It holds items with icons and keys, links, checkboxes, radio choices, submenus, and a filter field.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Render a Button through render on MenuTrigger. Give an item label when it has a MenuShortcut, so type-ahead matches the name.

The sample also uses Button. One command adds them with this item:

edit-menu.tsx

Menu

PropTypeDefaultDescription
From Base UIMenu.RootBase UI docs

MenuFilter

PropTypeDefaultDescription
From Base UIMenu.FilterProviderBase UI docs

MenuTrigger

<button>
PropTypeDefaultDescription
From Base UIMenu.TriggerBase UI docs
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

MenuContent

<div>
PropTypeDefaultDescription
From Base UIMenu.PopupBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuInput

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuGroup

<div>
PropTypeDefaultDescription
From Base UIMenu.GroupBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuGroupLabel

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuItem

<div>
PropTypeDefaultDescription
From Base UIMenu.ItemBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuLinkItem

<a>
PropTypeDefaultDescription
From Base UIMenu.LinkItemBase UI docs
...props<a> attributes—Every other attribute goes to the <a>, with a ref.

MenuCheckboxItem

<div>
PropTypeDefaultDescription
From Base UIMenu.CheckboxItemBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuRadioGroup

<div>
PropTypeDefaultDescription
From Base UIMenu.RadioGroupBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuRadioItem

<div>
PropTypeDefaultDescription
From Base UIMenu.RadioItemBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuShortcut

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

MenuSeparator

<div>
PropTypeDefaultDescription
From Base UISeparatorBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuSub

PropTypeDefaultDescription
From Base UIMenu.SubmenuRootBase UI docs

MenuSubTrigger

<div>
PropTypeDefaultDescription
From Base UIMenu.SubmenuTriggerBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuSubContent

<div>
PropTypeDefaultDescription
From Base UIMenu.PopupBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuSegmentedRadioGroup

<div>
PropTypeDefaultDescription
From Base UIMenu.RadioGroupBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MenuSegmentedRadioItem

<div>
PropTypeDefaultDescription
From Base UIMenu.RadioItemBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for a list of actions that opens from a button.
  • Use MenuCheckboxItem and MenuRadioGroup for settings. They stay open on a click.
  • Use MenuSub for nested actions.
  • Use MenuFilter with MenuInput and MenuList for a long list.
  • Use MenuLinkItem for a link. Render a router link through render.
  • To pick a form value, use a Select.
  • For actions at the pointer on a right click, use a Context Menu.
  • For a popup with other content than actions, use a Popover.
EnterorSpaceOn the trigger: opens the menu.
Arrow DownorArrow UpOn the trigger, opens the menu. In the menu, moves to the next or the previous item.
HomeorEndMoves to the first or the last item.
EnterorSpaceOn an item: runs the item, or changes a check or a radio choice.
Letter keysMoves to the item whose text starts with the typed letters.
Arrow RightOpens a submenu. In right to left, use Arrow Left.
Arrow LeftCloses a submenu. In right to left, use Arrow Right.
EscapeCloses the menu. In a submenu it closes only the submenu, unless closeParentOnEsc is set.

It is a Base UI Menu. The popup has the menu role, and the arrow keys move between items.

A letter key jumps to the item that starts with it.

MenuInput needs an aria-label. MenuShortcut is text only: the menu does not bind the keys.

Open
popup · 150ms · ease-panel (0.2, 0.4, 0.2, 1) · fades in and scales from 95%
Close
popup-exit · 120ms · ease-out (0, 0, 0.2, 1)

Built with

Installs with Menu

Components
Separator,Switch
  1. AddedMenu, with Separator, Switch.
Open the release