DEV Community

lemi melkamu
lemi melkamu

Posted on

I built a generic React Select on top of shadcn/ui (supports objects, async & pagination)

Most React select components work great — until your data isn’t just strings or IDs.

In real-world apps, we often need to:

  • Select objects, not primitives
  • Support server-side search
  • Handle pagination or infinite scroll
  • Reuse the same select across different data models

So I built react-generic-select, a type-safe Select / Multi-Select component built on top of shadcn/ui, designed for real application data.

This is an early open-source experiment, and I’d love feedback and contributions from the community — especially from folks using shadcn/ui in production.

🔗 GitHub

https://github.com/lemidb/react-generic-select

🌐 Live Demo

https://react-generic-select-demo-3zmt.vercel.app/

📦 npm

https://www.npmjs.com/package/react-generic-select

If you’ve ever customized shadcn Select to work with objects, async APIs, or large datasets — I’d love to hear your thoughts.

Top comments (0)