# Image

## Overview

A field to store images via URL or uploaded directly. The component supports size adapting and cropping. URLs or Base64-encoded images are accepted.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FjPcO8DjuPnpEvwMTkcpm%2FCleanShot%202025-08-04%20at%2015.50.13%402x-min.png?alt=media&#x26;token=237d79dd-9da6-4ac2-8a43-91175f078c09" alt=""><figcaption></figcaption></figure>

### Properties

| Name   | Type     | Description    |
| ------ | -------- | -------------- |
| `name` | `string` | Component name |

### Methods

<table><thead><tr><th width="97.23828125">Name</th><th width="127.34375">Parameters</th><th width="105.71875">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setSrc</code></td><td><code>src: string</code></td><td><code>void</code></td><td>Set component src setting</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="154.328125">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Click</strong></td><td>Triggered when the component is clicked</td></tr><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr></tbody></table>
