Common UI kit components
Confluence UI kit components
Jira UI kit components

Rate this page:

Image

An image.

Gif of homer simpson retreating into bushes

Import statement

1
import ForgeUI, { Image } from '@forge/ui';

Props

NameTypeRequiredDescription
altstringYesThe alternative text displayed if the image is not loaded.
srcstringYesThe URL of the image.
size'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'The size of the image. Defaults to xlarge.

Example

1
2
3
4
<Image
  src="https://media.giphy.com/media/jUwpNzg9IcyrK/source.gif"
  alt="homer"
/>

Rate this page: