Created
July 31, 2018 22:10
-
-
Save grantglidewell/23644d42f165474ff8ebd5333b30247a to your computer and use it in GitHub Desktop.
Zesty.io Card
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
export function Card(props) { | |
return ( | |
<article {...props} className={cx(styles.Card, props.className)}> | |
{props.children} | |
</article> | |
); | |
} | |
export function CardHeader(props) { | |
return ( | |
<header className={cx(styles.CardHeader, props.className)}> | |
{props.children} | |
</header> | |
); | |
} | |
export function CardContent(props) { | |
return ( | |
<main {...props} className={cx(styles.CardContent, props.className)}> | |
{props.children} | |
</main> | |
); | |
} | |
export function CardFooter(props) { | |
return ( | |
<footer className={cx(styles.CardFooter, props.className)}> | |
{props.children} | |
</footer> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment