mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 05:58:09 +08:00
18 lines
412 B
JavaScript
18 lines
412 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styles from './Card.css';
|
|
|
|
const Card = ({children, className, shadow = 2, ...props}) => (
|
|
<div className={`${styles.base} ${className} ${styles[`shadow--${shadow}`]}`} {...props}>
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
Card.propTypes = {
|
|
children: PropTypes.node,
|
|
className: PropTypes.string,
|
|
shadow: PropTypes.number,
|
|
};
|
|
|
|
export default Card;
|