Skip to content

Menus support auto-positioning #2279

@metonym

Description

@metonym

Menu components like OverflowMenu and Dropdown should support a backward-compatible prop that allows auto-positioning.

The feature would auto-detect the boundary of the viewport and apply the best-fitting positioning to avoid clipping the menu. It would be ideal to reuse the positioning logic used by the ContextMenu submenu.

  • OverflowMenu
  • ComboBox
  • Dropdown
  • MultiSelect

This would resolve: #796

Implementation-wise, we could lean on Floating UI for the heavy lifting: #2150

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions