Created
August 6, 2016 17:33
-
-
Save mikeyamadeo/458a509320584e25a091e7db249ed079 to your computer and use it in GitHub Desktop.
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
import { colors, baseFontSize } from 'App/style/settings' | |
const Txt = ({ | |
color = 'text', | |
size = baseFontSize, | |
tag = 'span', | |
children, | |
...rest | |
}) => { | |
const Tag = tag | |
return <Tag {...{ | |
...rest, | |
style: { | |
color: colors[color], | |
fontSize: size, | |
lineHeight: height | |
} | |
}}>{ children }</Tag> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment