Skip to content

Menu

Last updated 11 Nov 2026

NbMenu is a floating menu container for actions and options. It follows the Carbon Design System menu pattern with full keyboard navigation, submenus, selectable items, danger items, and dividers.

The menu system is composed of several components that work together: NbMenu, NbMenuItem, NbMenuDivider, and NbSubmenu.

Dividers ​

Use NbMenuDivider to separate groups of related actions.

Icons ​

Menu items support an optional leading icon via the icon prop (any Phosphor icon name).

Selectable items ​

Set selectable on a menu item to render it as a checkbox-style toggle with a checkmark indicator.

Radio groups ​

Use the radioGroup prop to create mutually exclusive selections within a named group.

Danger items ​

The danger prop renders an item with destructive styling (red text, red hover background).

Disabled items ​

Disabled items are visually muted and cannot be activated. Prefer disabling an item to removing it: a menu that changes shape from one opening to the next is a menu nobody can learn.

Give a disabled item a disabled-reason to say why it does not apply. The reason is printed as a muted second line under the label, so it reads the same with a mouse, a finger or a keyboard, and the arrow keys stop on the item so a screen reader announces it. Items without a reason keep their single-line height. NbSubmenu takes a disabled-reason the same way, for a whole branch that does not apply: it reads the same and does not open.

Sizes ​

Menus support four item sizes: xs (24px), sm (32px), md (40px, default), and lg (48px).