Skip to content
Discussion options

You must be logged in to vote

This API isn't currently supported due to the types of children Menu expects, but you can always do this in a controlled way. Here is the example from the React Aria homepage where the edit and delete items open up dialogs:

<MenuItem id="edit"><PencilIcon aria-hidden className="w-4 h-4" /> Edit…</MenuItem>
<MenuItem id="delete"><TrashIcon aria-hidden className="w-4 h-4" /> Delete…</MenuItem>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devongovett
Comment options

@tuananhlai
Comment options

Answer selected by tuananhlai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants