Skip to content

Commit

Permalink
feat(CardActions): create new component
Browse files Browse the repository at this point in the history
  • Loading branch information
kradio3 committed Jan 9, 2017
1 parent 36abef4 commit b30b13f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Card/CardActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, { PropTypes } from 'react';
import classnames from 'classnames';

const propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};

const CardActions = ({ className, children }) => (
<section
className={classnames('mdc-card__actions', className)}
>
{children}
</section>
);
CardActions.propTypes = propTypes;
export default CardActions;
1 change: 1 addition & 0 deletions src/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export { CardHeader } from './CardHeader';
export { CardTitle } from './CardTitle';
export { CardSubTitle } from './CardSubtitle';
export { CardText } from './CardText';
export { CardActions } from './CardActions';

0 comments on commit b30b13f

Please sign in to comment.