Last active
March 30, 2019 12:53
-
-
Save johnnyBira/ee4efe7d8bffc70060647fdd1ccd2fe4 to your computer and use it in GitHub Desktop.
Medium #1 - Responsive Props API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pass multiple values that will apply different styles at differetn media queries | |
<MyStyledComponent someProp={{xs: 'val1', l: 'val2', xl: 'val3' }} /> | |
// Optionally pass one value what will apply styles without media queries, i.e all window sizes | |
<MyStyledComponent someProp="val1" /> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment