Last active
July 25, 2020 00:30
-
-
Save jamiejohnsonkc/40b239ede699fb596cae01d969cbc079 to your computer and use it in GitHub Desktop.
using termplate literal to pass variant as prop
This file contains hidden or 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
| <Text variant={`text.${props.textVariant}`}> | |
| // | |
| <component textVariant="caption"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment