Skip to content

Introduce Menu component (aka DropdownMenu v2) #50459

@ciampo

Description

@ciampo

Related to #49271

We would like to build a mode modular, accessible, and feature-rich (eg. with support for sub-menus) version of the DropdownMenu component.

Given how tricky it can be to implement this feature in an accessible and usable way, we're going to leverage ariakit and its Menu component. We initially tested Radix UI but found some blockers.

Choosing an API approach

After some initial discussion, we've landed on an approach:

  • Keep ariakit as an internal implementation detail as much as possible
  • Expose as few props as needed
  • Expose low-level, granular components, to allow for greater flexibility
  • Consider adding as many guidelines, examples, and any other tools to help consumers use the component correctly.

Next steps:

This may close #18537

Metadata

Metadata

Assignees

Labels

[Package] Components/packages/components[Type] EnhancementA suggestion for improvement.[Type] New APINew API to be used by plugin developers or package users.[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions