// https://stackoverflow.com/questions/61488512/react-does-not-recognize-the-prop-passed-to-a-styled-component-within-material-u
const Text = styled( ({textColor, textSize, ...rest}) => <Typography {...rest}/>)margin-bottom: 10px; color: ${({ textColor }) => textColor ?? textColor}; font-size: ${({ textSize }) => (textSize ? textSize + "px" : "16px")};
;
Created
November 9, 2021 14:39
-
-
Save alan-ps/7983afb25da93667d5c5d76d42a21358 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment