Skip to content

Commit

Permalink
feat(CardHorizontalBlock): new component (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0tonin authored and kradio3 committed Aug 4, 2017
1 parent d58507a commit b895283
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Card/CardHorizontalBlock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';

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

const CardHorizontalBlock = ({ className, children, ...otherProps }) => (
<div
className={classnames('mdc-card__horizontal-block', className)}
{...otherProps}
>
{children}
</div>
);
CardHorizontalBlock.propTypes = propTypes;
export default CardHorizontalBlock;

0 comments on commit b895283

Please sign in to comment.