572 B
572 B
<image>
An image. src resolves to an image asset (see media.md).
<image src="/photo.jpg" x={40} y={40} width={200} height={112} />
Props
All common props, plus:
| Prop | Type | Default | Meaning |
|---|---|---|---|
src |
string | AssetRef |
required | See media.md. |
objectFit |
"cover" | "contain" | "fill" |
"contain" |
How the source maps into the box. |
A paint child draws over the media paint created by src (see paints.md).