Skip to content

Allow class name overrides rather than replacement #33

Description

@timothyarmes

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions