Typing for Props passed to useStyles(props) #3331
-
| Hi. How do we type the props in useStyles? The typing for theme is working fine. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by arpitBhalla Feb 3, 2022
Replies: 1 comment 1 reply
-
| Hey, for now you can use type StyleProps={ size:number; } const useStyles = makeStyles((theme, props:StyleProps) => ({ image: { width: props.size }, }));I am working on theming, hope it would get better in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by myhendry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Hey, for now you can use
I am working on theming, hope it would get better in
v4