react-toolbox/components/card/CardActions.jsx

36 lines
778 B
React
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';
2015-11-23 07:19:26 +03:00
/**
* This component is used as a container for supplemental
* card actions. Supplemental actions within the card are
* explicitly called out using icons, text, and UI controls,
* typically placed at the bottom of the card.
*/
class CardActions extends Component {
static propTypes = {
children: PropTypes.any,
2015-11-21 22:17:18 +03:00
className: PropTypes.string
}
render () {
const {
children,
className,
...otherProps
} = this.props;
2015-11-21 22:17:18 +03:00
const classes = ClassNames(style.cardActions, className);
return (
<div className={classes} {...otherProps}>
{children}
</div>
);
}
}
export default CardActions;