---
title: "display-image"
description: "Display an uploaded image asset or bound photo."
permalink: /docs/runtime/all-ui-components/display-image/
---
# display-image

<RuntimeVersion updatedSince="4.74.0" />

## Overview

### Basic Example

```xml
<var name="assembly_image" type="photo" />

<display-image bind="assembly_image" />
```

![](./media/spaces-2f9tchlr67elhbojpvhhud-2fuploads-2fgit-blob-100eca4de7931421d05ed2873ede4424dc0c8247-2fdisplay-image-example-5f928b02.png)

## Standard Attributes

### `src`

<SyntaxCard type="string" defaultValue="unset" />

`src` can be used to display an image asset rather than a `photo` field or variable (assets are uploaded via OXIDE).

```xml
<display-image src="images/company_logo.png"/>
```

<Info>

Use `bind` to display a `photo` field or variable.

</Info>

<Warning>

`display-image` cannot have both `src` and `bind` attributes.

</Warning>

## Advanced Attributes

### `show-if`

<AttributeReference label="show-if" href="/docs/runtime/common-component-attributes/show-if/" badge="advanced" tone="muted" />

### `hide-if`

<AttributeReference label="hide-if" href="/docs/runtime/common-component-attributes/hide-if/" badge="advanced" tone="muted" />

## Common Attributes

### `bind`

<AttributeReference label="bind" href="/docs/runtime/common-component-attributes/bind/" />

<Info>

Use `src` to display an image asset.

</Info>

<Warning>

`display-image` cannot have both `src` and `bind` attributes.

</Warning>
