babel-plugin-styled-components
babel-plugin-styled-components copied to clipboard
Add prefix to class of all the styled components
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!
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.