Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
feat(ListGroup): add isCardBody prop
Browse files Browse the repository at this point in the history
A new prop that adds a class for styling the ListGroup like a CardBody
  • Loading branch information
jonthomp committed May 31, 2018
1 parent 9644fca commit e435785
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/List/ListGroup.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ type Props = {|
+children?: React.Node,
+className?: string,
+transparent?: boolean,
+isCardBody?: boolean,
|};

function ListGroup({ className, children, transparent }: Props): React.Node {
function ListGroup({
className,
children,
transparent,
isCardBody,
}: Props): React.Node {
const classes = cn(
"list-group",
"mb-0",
{
"list-group-transparent": transparent,
"card-list-group": isCardBody,
},
className
);
Expand Down

0 comments on commit e435785

Please sign in to comment.