Skip to content

Instantly share code, notes, and snippets.

@maciejmatu
Created October 20, 2017 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maciejmatu/250ce1821ce3397d8ac15e974323e071 to your computer and use it in GitHub Desktop.
Save maciejmatu/250ce1821ce3397d8ac15e974323e071 to your computer and use it in GitHub Desktop.
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