Card
Cards contain content and actions about a single subject.
For full API and props, see Card API.
Introduction
Cards are surfaces that display content and actions on a single topic. The MUI Card component includes several complementary utility components to handle various use cases:
- Card: a container for grouping related content and actions.
- CardContent: the wrapper for the card’s main content.
- CardHeader: an optional wrapper for the card’s header area.
- CardMedia: an optional container for images, videos, and other media.
- CardActions: an optional wrapper that groups action buttons.
- CardActionArea: an optional wrapper that makes a defined area of the card interactive.
Word of the Day
adjective
well meaning and kindly.
"a benevolent smile"
Basics
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
Outlined Card
Set variant="outlined"
to render an outlined card.
Word of the Day
adjective
well meaning and kindly.
"a benevolent smile"
Complex Interaction
On desktop, card content can expand. (Click the downward chevron to view the recipe.)

This impressive paella is a perfect party dish and a fun meal to cook together with your guests. Add 1 cup of frozen peas along with the mussels, if you like.
Media
Example of a card using an image to reinforce the content.
Lizards are a widespread group of squamate reptiles, with over 6,000 species, ranging across all continents except Antarctica
By default, we use the combination of a <div>
element and a background image to display the media. It can be problematic in some situations, for example, you might want to display a video or a responsive image. Use the component
prop for these use cases:
When using
component="img"
, provide an appropriatealt
text for accessibility.

Lizards are a widespread group of squamate reptiles, with over 6,000 species, ranging across all continents except Antarctica
Primary action
Often a card allows users to interact with the entirety of its surface to trigger its main action, be it an expansion, a link to another screen, or another behavior. The action area of the card can be specified by wrapping its contents in a CardActionArea
component.
A card can also offer supplemental actions that should be separate from the main action area to avoid event overlap.
UI Controls
Supplemental actions within the card are explicitly called out using icons, text, and UI controls, typically placed at the bottom of the card.
Here's an example of a media control card.

Active state styles
To customize a Card's styles when it's in an active state, you can attach a data-active
attribute to the Card Action Area component and apply styles with the &[data-active]
selector, as shown below:
🎨 If you are looking for inspiration, you can check MUI Treasury's customization examples.
API
See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.