@@ -3,10 +3,10 @@ title: 'Card'
33section : components
44cssPrefix : ' pf-c-card'
55typescript : true
6- propComponents : ['Card', 'CardHeader', 'CardBody', 'CardFooter']
6+ propComponents : ['Card', 'CardHeadMain', ' CardHeader', 'CardBody', 'CardFooter']
77---
88
9- import { Card, CardActions, CardHead, CardHeader, CardBody, CardFooter, Checkbox, DropdownActions } from '@patternfly/react-core ';
9+ import { Brand, Card, CardActions, CardHead, CardHeadMain , CardHeader, CardBody, CardFooter, Checkbox, DropdownActions } from '@patternfly/react-core ';
1010import pfLogo from './pfLogo.svg';
1111
1212## Examples
@@ -25,7 +25,7 @@ SimpleCard = () => (
2525
2626``` js title=With-image-and-actions
2727import React from ' react' ;
28- import { Card , CardHead , CardActions , CardHeader , CardBody , CardFooter , Dropdown , DropdownToggle , DropdownItem , DropdownSeparator , DropdownPosition , DropdownDirection , KebabToggle , } from ' @patternfly/react-core' ;
28+ import { Brand , Card , CardHead , CardHeadMain , CardActions , CardHeader , CardBody , CardFooter , Dropdown , DropdownToggle , DropdownItem , DropdownSeparator , DropdownPosition , DropdownDirection , KebabToggle , } from ' @patternfly/react-core' ;
2929import pfLogo from ' ./pfLogo.svg' ;
3030
3131class KebabDropdown extends React .Component {
@@ -75,7 +75,9 @@ class KebabDropdown extends React.Component {
7575 return (
7676 < Card>
7777 < CardHead>
78- < img src= {pfLogo} alt= " PatternFly logo" style= {{ height: ' 50px' }}/ >
78+ < CardHeadMain>
79+ < Brand src= {pfLogo} alt= " PatternFly logo" style= {{ height: ' 50px' }}/ >
80+ < / CardHeadMain>
7981 < CardActions>
8082 < Dropdown
8183 onSelect= {this .onSelect }
@@ -262,12 +264,14 @@ class KebabDropdown extends React.Component {
262264
263265``` js title=Only-image-in-the-card-head
264266import React from ' react' ;
265- import { Card , CardBody , CardFooter , CardHead , CardHeader } from ' @patternfly/react-core' ;
267+ import { Brand , Card , CardBody , CardFooter , CardHead , CardHeadMain , CardHeader } from ' @patternfly/react-core' ;
266268
267269ImageCard = () => (
268270 < Card>
269271 < CardHead>
270- < img src= {pfLogo} alt= " PatternFly Logo" style= {{ height: ' 50px' }}/ >
272+ < CardHeadMain>
273+ < Brand src= {pfLogo} alt= " PatternFly logo" style= {{ height: ' 50px' }}/ >
274+ < / CardHeadMain>
271275 < / CardHead>
272276 < CardHeader> Header< / CardHeader>
273277 < CardBody> Body< / CardBody>
0 commit comments