> For the complete documentation index, see [llms.txt](https://docs.trydrupal.com/radix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trydrupal.com/radix/components/media.md).

# Media

### Key Features

* **Media Object Support**: Handles rendering of a media item object, providing controlled access to its properties and methods.
* **Customizable Display**: Supports different view modes and publishing states for media items, allowing for varied presentation styles.
* **Content Integration**: Pre-structured media content is ready for output, ensuring consistent and efficient rendering.

### Customization Options

* **Dynamic CSS Classes**: Automatically applies CSS classes based on media type, publication status, and view mode, facilitating custom styling.
* **Contextual Links**: Includes contextual links for easy content management and editing when available.

### Usage

```twig
{% include 'radix:media' with {
  media: media_item,
  content: media_content,
  view_mode: 'full',
} %}
```
