Skip to content

Default value for classNamePrefix #4362

@AmirTugi

Description

@AmirTugi

I couldn't find any information on why would classNamePrefix has no default value.

When the user does not define classNamePrefix - the component-specific classes are not used (e.g - *__multi-value_remove).
Here's a sandbox of it.

This issue related somehow to #4123.

I think that those classes are great to have by default, and this means the user will need 0 config in order to get a specific selector for the internal components.

My use case is this PR for the react-select-event that allows us to find specific components not basing on the type of the component (svg. What if react-select will use a different icon in the future?).

In order to resolve this, all we need is just add here the default value for the classNamePrefix (I suggest react-select).
I can create the PR, and I just ant to know if there's any unseen backward compatibility effect on the user.

I created a PR for react-select-event that uses the internal class names, but it's awaiting this issue to resolve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-author-responseIssues or PRs waiting for more information from the author

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions