---
title: Media Preview
slug: wip/media-preview
createdAt: 2023-07-20T14:41:14.934Z
---

# Media Preview

:::hint{type="info"}
Use the Media Preview component to display media within components or content.

🎨 Figma: The Media Preview is available as a Component that can be accessed in the Assets Panel.

💻 Code: The Media Preview is available as a Web Component.
:::

The Media Preview is a component used for displaying media, both still and moving images. Given a media asset, the component takes care of loading and presenting the media. When placed inside a container, the media can adapt its size and aspect ratio according to the bounds of the container.

:::Iframe{iframeHeight="0" code="<iframe&#xA;  allow=&#x22;clipboard-write *&#x22;&#xA;  height=&#x22;100px&#x22;&#xA;  loading=&#x22;eager&#x22;&#xA;  src=&#x22;https://cosmos-storybook.rbds-production.redbullaws.com/storybook/iframe.html?id=media-media-preview--docs&viewMode=docs&blocks=story,table&filter=props,events,methods,slots&#x22;&#xA;  title=&#x22;Embedded storybook from cosmos-storybook.herokuapp.com&#x22;&#xA;></iframe>"}

:::

