# 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',
} %}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trydrupal.com/radix/components/media.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
