react-toolbox/components/card/Card.jsx

30 lines
504 B
JavaScript

import React, { PropTypes } from 'react';
import ClassNames from 'classnames';
import style from './style';
const Card = ({
children,
className,
raised,
...otherProps
}) => {
const classes = ClassNames(style.card, {
[style.raised]: raised
}, className);
return (
<div className={classes} {...otherProps}>
{children}
</div>
);
};
Card.propTypes = {
children: PropTypes.any,
className: PropTypes.string,
raised: PropTypes.bool
};
export default Card;