Skip to main content

CardMedia

Container for an image illustrating the card, for example on a list of blog posts.

<CardMedia image="{/* insert content */}" />

Props​

Width​

Override the default width of the image (when used on a Card with direction="landscape" prop).

<CardMedia width={200} image="{/* insert content */}" />

Height​

Override the default height of the image.

<CardMedia height={200} image="{/* insert content */}" />

FullWidth​

Remove the gutter around the image.

Full width

<CardMedia fullWidth image="{/* insert content */}" />