babel-plugin-styled-components icon indicating copy to clipboard operation
babel-plugin-styled-components copied to clipboard

Add prefix to class of all the styled components

Open OriAmir opened this issue 5 years ago • 1 comments

I use the great plugin and see this 2 exists options for the components class name:

displayName: true/false - give the option to see in the class the file name and the component name. fileName: true/false -give the option to show just the styled component without the file name
What if i want to add prefix to all the class name, for example I want to add "TEST-״ and then that styled-components will generate his own id.

i think that if was another option like (or already have maybe) of something like that, it's can be really useful.. prefix: "TEST-"

Thanks!

OriAmir avatar Mar 14 '20 19:03 OriAmir

There is an issue on styled-components repo but I have created PR to this repository which will resolve at least one of your request. 281 Please support it so someone finally gonna notice.

rajzik avatar May 27 '20 20:05 rajzik