-
-
Save 4ov/9a7a02b6bb73e6ba7afd047371f18caa to your computer and use it in GitHub Desktop.
h component
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 React from 'react' | |
export default ({ size="16", style, className, children, weight="normal" }) =>{ | |
// | |
return<span style={{ fontSize : `${size}pt`, fontWeight : weight,display : 'block', ...style }} className={className}> | |
{children} | |
</span> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment