Skip to content

Commit

Permalink
feat(CardSubtitle): create new component
Browse files Browse the repository at this point in the history
  • Loading branch information
kradio3 committed Jan 9, 2017
1 parent 9417d3d commit 4bf15e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Card/CardSubtitle.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 CardSubtitle = ({ className, children }) => (
<h2
className={classnames('mdc-card__subtitle', className)}
>
{children}
</h2>
);
CardSubtitle.propTypes = propTypes;
export default CardSubtitle;
1 change: 1 addition & 0 deletions src/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ import '@material/card/dist/mdc.card.min.css';
export { default } from './Card';
export { CardHeader } from './CardHeader';
export { CardTitle } from './CardTitle';
export { CardSubTitle } from './CardSubtitle';

0 comments on commit 4bf15e6

Please sign in to comment.