davidtheclark / davidtheclark/react-aria-menubutton
Usage with Custom components as MenuItem
- Dominant language
- TypeScript
- Stars
- 452
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
In the current implementation, the focus management and onClick for the `MenuItem` is internally taken care of . This works alright when the `MenuItem`s are spans which need to trigger a functionality on click, but if the `MenuItem`s are to be links (anchor tag), then this does not work as expected.
In the docs, i can see that we can pass a tag and props to the `MenuItem` instead of children which will make it work for the link as expected.
` text `
Is there a way to make this work with `Link` from react router, or any other custom `Link `components
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.