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

# Media Object

The Avonni Media Object component provides a flexible layout that aligns a media element (such as an icon, avatar, or image) alongside body content, following the Lightning Design System media object pattern.

## Overview

The Media Object component uses three slots to organize your content:

* **Figure (Left):** Place an image, icon, or other media that appears on the left side of the content.
* **Content:** The main area for your text content, positioned alongside the figure.
* **Figure Inverse (Right):** An alternative media area that appears on the right side of the content.

<figure><img src="/files/D0wyGpWEWHzKJRrmsCI2" alt=""><figcaption><p>Media Object and Slots disposal</p></figcaption></figure>

**Example Use Cases**

* **Product Listings:** Display product images alongside their descriptions and prices.
* **News Articles:** Show article images or author avatars next to the text.
* **User Profiles:** Present user avatars with their names and details.
* **Call-to-Action Sections:** Combine images with compelling text and buttons.

## Configuration

To configure the Media Object, select it on the canvas. The configuration panel opens on the right. The sections below mirror the Properties tab.

### Properties

#### Inline

When enabled, the figure and body are aligned as inline-block elements side by side. Disable this to let them stack or span full width.

#### Responsive

When enabled, the layout automatically adapts to different screen sizes, optimizing the display for both desktop and mobile views.

#### Vertical Align

Controls how the figure and body are aligned vertically within the container. Options: **Start** (top), **Center**, and **End** (bottom). Defaults to **Start**.

#### Size

Controls the overall size of the Media Object. Options: **Small**, **Medium** (default), and **Large**.

### Set Component Visibility

All components support conditional visibility — see [Component Visibility](/dynamic-components/core-concepts/component-visibility.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/dynamic-components/components/media-object.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
