useStyles
useStyle
ties everything together and handles the heavy lifting. Without useStyles
, you can’t utilize features like:
- breakpoints
- media queries
- themes
useStyles allows you to skip the stylesheet
if you only want to access the theme
:
For more advanced usage, pass your stylesheet
generated with createStyleSheet
:
You can also access the current breakpoint
to manipulate the JSX or dynamically select your styles:
Show or hide components based on breakpoint (with your own implementation of Visible/Hidden components):
Access styles based on breakpoint (may be helpful for variants):