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
Would be great to have a plugin which allows (conditional) style object extension.
Proposal
We could use the extend key to specify styles used to extend.
Code Example:
// basicconstbaseRules={backgroundColor: 'red'}construle=props=>({color: 'blue',// might support multiple objects using arraysextend: baseRules})// conditionalconstrule=props=>({color: 'blue',// could also support multiple using arraysextend: {condition: props.bg===true,style: {backgroundColor: 'red'}}})
The text was updated successfully, but these errors were encountered:
Environment: Both
Type: Feature
Description
Would be great to have a plugin which allows (conditional) style object extension.
Proposal
We could use the
extend
key to specify styles used to extend.Code Example:
The text was updated successfully, but these errors were encountered: