You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
I'm writing styles for a react component library and we're going to adopt custom properties. One thing I'm worrying is that global custom properties defined in my library may pollute those in the user application. One possible solution is adding a unique prefix for every custom properties in my library, e.g. --btn-bg -> --rs-btn-bg. So I wonder if I can have this option that allow adding prefixes/suffixes.
I'm writing styles for a react component library and we're going to adopt custom properties. One thing I'm worrying is that global custom properties defined in my library may pollute those in the user application. One possible solution is adding a unique prefix for every custom properties in my library, e.g.
--btn-bg
->--rs-btn-bg
. So I wonder if I can have this option that allow adding prefixes/suffixes.API Proposal
renameProperties: { test: RegExp, handler(originalName: string) => string }
Allows user to rename properties that matches the pattern they want.
prefix: string
/suffix: string
Short for predefined renaming rules with
'*'
test pattern.The text was updated successfully, but these errors were encountered: