react-tailwindcss-select icon indicating copy to clipboard operation
react-tailwindcss-select copied to clipboard

Allow class name overrides rather than replacement

Open timothyarmes opened this issue 1 year ago • 1 comments

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.

timothyarmes avatar Mar 15 '23 08:03 timothyarmes