Images
You can add static images to your app by uploading images in the Images
section.
tip
This copied snippet is only the image url. You will need to wrap it in an <img>
tag
Usage
Once uploaded, they will be accessible under the assets
variable in the Widget Designer
.
Example
note
The uploaded image will be referred to as a unique random 3 worded ID. In the example below, the name of the image is cool_little_fox
.
Once you upload your image my_image.png
from your computer, it can be accessed via the asset
variable in the Widget Designer
. Add this in the src
property of an image tag:
<img src={assets.cool_little_fox} />
tip
The Widget Designer
is strongly typed with TypeScript, so typing assets.
will provide auto-completion!