Card
A surface that groups related content: a header with a title, a description and an action, above the content that belongs to them.
Usage
Examples
Appearances
appearance paints the card on the kit's one scale: solid, the default, soft on the grey wash, outline with only its line, and transparent with neither.
Sizes
size sets the padding and the gaps, sm 12px, base 16px (the default) or lg 20px, and steps the title and the description down with sm and up with lg.
Border radius
borderRadius sets the corners on the kit's one scale: none, xs 4px, sm 6px, base 8px (the default), lg 12px or xl 16px, a CardMedia at its edge following them.
Overflow
overflow hidden, the default, cuts what runs past the card's edge, and visible lets it out, as a chart's tooltip needs.
Text
text on CardTitle sets the title's type: heading, the default, then label, body and description for quieter titles such as a dashboard card's.
Truncate
truncate on CardTitle or CardDescription keeps it on one line, cut with an ellipsis, where by default it wraps.
Disabled
disabled fades the card to half and puts it out of reach of the pointer, the keyboard and screen readers, beside one as it is by default.
API Reference
Card
CardProps · components/Card/Card.types.tsCardHeader
CardHeaderProps · takes the props of <div>CardTitle
CardTitleProps · also takes the props of <div>CardDescription
CardDescriptionProps · also takes the props of <div>CardAction
CardActionProps · takes the props of <div>CardMedia
CardMediaProps · takes the props of <div>CardContent
CardContentProps · takes the props of <div>CardFooter
CardFooterProps · takes the props of <div>It also takes the props of <div>.