Closed cuevash closed 6 years ago
Hey @cuevash,
The React props are not passed to the style function, only the theme and any parent styles. What use case do you have for needing the props?
@cuevash
This is now possible with 2.0. https://github.com/milesj/aesthetic#style-functions
Typically in a code like:
style((theme) => ({ button: { fontSize:
${theme.unitSize}${theme.unit}
, fontFamily: theme.font, padding: theme.spacing, }, }))(Component);you has access to the theme object, but how can you access the props object that is passed to the HoC ?
Cheers!