Skip to content

Action Group

Last updated 11 Nov 2026

NbActionGroup is a row of page actions that knows how to fit a phone. On a desktop it renders exactly the buttons you would have placed by hand. On a phone it keeps the one action that matters on screen as an icon and folds the rest into a "more" menu, so a topbar with five labelled buttons stays usable at 360px instead of being clipped.

Accessibility ​

  • Every action is a real NbButton. Folded to an icon (or iconOnly), its label becomes the button's label: the accessible name a screen reader hears, and the tooltip a sighted user sees. A disabled one with a disabledReason stays focusable and shows the reason in that tooltip.
  • The overflow trigger is named by overflowLabel ("More actions") and carries aria-haspopup="menu" and aria-expanded.
  • The menu takes focus on its first row when it opens and hands it back to the trigger when it closes from the keyboard or after a choice.
  • A disabled or loading action does nothing when chosen, from either its button or its menu row.