react-toolbox/components/card/CardActions.js

24 lines
513 B
JavaScript
Raw Normal View History

import React, { PropTypes, Component } from 'react';
2015-11-21 22:17:18 +03:00
import ClassNames from 'classnames';
import style from './style';
class CardActions extends Component {
static propTypes = {
children: PropTypes.any,
2015-11-21 22:17:18 +03:00
className: PropTypes.string
2016-01-08 18:50:07 +03:00
};
render () {
const { children, className, ...other } = this.props;
2015-11-21 22:17:18 +03:00
const classes = ClassNames(style.cardActions, className);
return (
<div className={classes} {...other}>
{children}
</div>
);
}
}
export default CardActions;