Image

class UI.Image

This documentation is a work in progress. UI scripting is a new feature, and additional content is still being added. Stay tuned for updates!

Attribute
Value

url

valid URL string This value is required.

alt

any string Default: "Image"

circle

True | False Default: False

shadow

True | False Default: False

width

%, px or auto width value.

Examples: "50%" "75px" "auto"

Default: "auto"

height

%, px or auto height value.

Examples: "50%" "75px" "auto"

Default: "auto"

rounded

"none"

"sm"

"md"

"lg"

"xl"

"2xl" Default: "md"

fill_type

"cover"

"contain" Default: "contain"

border_color

Any CSS valid color value.

See: CSS Color Values

Examples: "#FFFFFF" "black" "rgb(255, 0, 0)" "hsla(0, 100%, 50%, 0.5)"

Default: "#FFFFFF"

border_width

integer between 0 and 10 Default: 0

margin

See Margin. Default: "m-0"

visible

See Visible. Default: True

Last updated

Was this helpful?