Created
October 20, 2017 22:23
-
-
Save maciejmatu/250ce1821ce3397d8ac15e974323e071 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 './HeaderText.scss'; | |
export default ({ | |
large, | |
children, | |
className, | |
...props | |
}) => { | |
const classList = `header__text ${large && 'header__text--large'} ${className}`; | |
return ( | |
<h1 className={classList} {...props}>{children}</h1> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment