@dotconnor/grommet
Version:
focus on the essential experience
28 lines • 1.12 kB
JavaScript
import { describe } from 'react-desc';
import { getAvailableAtBadge } from '../../utils';
export var doc = function doc(Card) {
var DocumentedCard = describe(Card).availableAt(getAvailableAtBadge('Card', 'Layout')).description("A Card is a container of information that provides access to more \n details. Elements of a Card can include Header, Body, Footer or any \n other custom component.").usage("import { Card } from 'grommet';\n<Card/>").intrinsicElement('div');
return DocumentedCard;
};
export var themeDoc = {
'card.container': {
description: 'Any valid Box prop for the Card container.',
type: 'object',
defaultValue: "{ round: 'small', elevation: 'small' }"
},
'card.header': {
description: 'Any valid Box prop for the CardHeader.',
type: 'object',
defaultValue: {}
},
'card.body': {
description: 'Any valid Box prop for the CardBody.',
type: 'object',
defaultValue: {}
},
'card.footer': {
description: 'Any valid Box prop for the CardFooter container.',
type: 'object',
defaultValue: "{ background: 'background-contrast' }"
}
};