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

Allow class name overrides rather than replacement #33

Open timothyarmes opened 1 year ago

timothyarmes commented 1 year ago

Currently it's possible to override the default class names for the various components used by the Select component, and this does work as intended. However, we typically only need to tweak a few things such as border-radius or colour, and currently this involves digging though the source code for react-tailwindcss-select to find the original classes for each component, copying and pasting all of them into our code, then modifying them a little.

I feel that a better solution would be to allow us to provide overrides to your base classes. You could then use tailwind-merge to merge the user's overriding classes with those the default ones provided by this library.

alcidesbsilvaneto commented 1 year ago

I guess #43 solves it.