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

Use tailwind-merge to override classes #36

Open timothyarmes opened 1 year ago

timothyarmes commented 1 year ago

inputClassName appends our classes onto the default classes, but that doesn't necessarily override them. For exemple, adding text-base doesn't affect the text size since the default text-sm takes priority.

The nicest solution would be to use tailwind-merge to merge our classes into the default list

alcidesbsilvaneto commented 1 year ago

43 solves it.