Skip to content

Instantly share code, notes, and snippets.

@grantglidewell
Created July 31, 2018 22:10
Show Gist options
  • Save grantglidewell/23644d42f165474ff8ebd5333b30247a to your computer and use it in GitHub Desktop.
Save grantglidewell/23644d42f165474ff8ebd5333b30247a to your computer and use it in GitHub Desktop.
Zesty.io Card
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