Skip to content

Commit

Permalink
feat(Card): default padding
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Sep 4, 2018
1 parent 4159c8e commit 633edb0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/atoms/Card/CardBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ const CardBody = ({ children, ...rest }: CardBodyProps) => (
</CardBodyTag>
);

CardBody.defaultProps = {
padding: 'md',
};

export { cardBodyTheme, CardBody };
4 changes: 4 additions & 0 deletions src/atoms/Card/CardFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ const CardFooter = ({ children, ...rest }: CardFooterProps) => (
</CardFooterTag>
);

CardFooter.defaultProps = {
padding: 'md',
};

export { cardFooterTheme, CardFooter };
4 changes: 4 additions & 0 deletions src/atoms/Card/CardHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ const CardHeader = ({
);
};

CardHeader.defaultProps = {
padding: 'md',
};

export { cardHeaderTheme, CardHeader };

0 comments on commit 633edb0

Please sign in to comment.