---
describes: DeprecatedMedia
id: DeprecatedMedia__README
---

**DEPRECATED:** Media will be removed from `ui-layout` in version 7.0.0. Use [Media](#Media) from [ui-byline](#ui-byline) instead. Codemods are available to automatically update imports to the new package.
***

A `Media` component with a caption:

```js
---
example: true
---
<DeprecatedMedia description={lorem.sentence()}>
  <Avatar name="Julia Chowder" />
</DeprecatedMedia>
```

Create a heading by using the `title` prop, and add space around the Media
component via the `margin` prop. To constrain the component's width, use
the `size` prop.

You can also adjust the alignment of the media with the descriptive text by
setting the `alignContent` prop.

```js
---
example: true
---
<DeprecatedMedia
  margin="x-large auto"
  size="small"
  alignContent="top"
  title="Graham Taylor"
  description={lorem.paragraph()}
>
  <Avatar name="Graham Taylor" />
</DeprecatedMedia>
```

```js
---
example: true
---
<DeprecatedMedia 
  description={
    <View display="block" margin="0 0 0 x-small">
      <Heading level="h2">
        <Link href="#">Clickable Heading</Link>
      </Heading>
      <Text 
        size="x-small" 
        transform="uppercase" 
        letterSpacing="expanded"
      >
        Something here
      </Text>
    </View>
  }>
  <SVGIcon src={iconExample} title="love" size="small" color="success" />
</DeprecatedMedia>
```
