zakodium-oss / react-science

React components and tools to build scientific applications.
https://react-science.pages.dev
MIT License
2 stars 6 forks source link

feat: improve useSelect hook item render #732

Closed hamed-musallam closed 4 months ago

hamed-musallam commented 4 months ago

In some cases, we need more than just text in the menu items, we require additional elements, as seen in the workspaces dropdown menu in NMRium. Therefore, I suggest enhancing the useSelect hook to support custom item rendering. I don't want to replace the entire MenuItem; I just need the ability to customize its content.

cloudflare-workers-and-pages[bot] commented 4 months ago

Deploying react-science with  Cloudflare Pages  Cloudflare Pages

Latest commit: ae4ff19
Status: ✅  Deploy successful!
Preview URL: https://b1691700.react-science.pages.dev
Branch Preview URL: https://improve-use-select-hook-item.react-science.pages.dev

View logs