onesine / react-tailwindcss-select

Tailwind Select Component for React.js
https://demo-react-tailwindcss-select.vercel.app/
MIT License
183 stars 38 forks source link

Sticky options? #62

Open DavidSubiros opened 5 months ago

DavidSubiros commented 5 months ago

I have used this library in different parts of my front-end.

There is a case where one of the options I have is a button to add an extra item in the options list. The issue is that that item should be always visible (sticky?) even if I type something that would filter it out.

I didn't see any way to doing this, but I think it would be easy to implement into the library? (e.g. an extra bool for the 'Option' type, which would act as a flag to determine if an option is 'sticky', and then use this value to prevent filtering out items that should be sticky when the user types something)

Is there any way that you would consider implementing this? Otherwise, I might need to switch to some other library, or create a fork.

Thanks!