Skip to content

Allow class name overrides rather than replacement #33

Open
@timothyarmes

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.

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