Image

The Image component can display an image given a src path as an argument. This could either be a local path from the assets folder or an external link.

Image composes a box and can be styled similarly.

You can also pass a PIL image object as the src.

An Unsplash Image

API Reference

rx.image

Display the img element.

PropType | ValuesDefault
alt
str
cross_origin
"anonymous" | "use-credentials" | ...
decoding
"async" | "auto" | ...
loading
"eager" | "lazy"
referrer_policy
"" | "no-referrer" | ...
sizes
str
src
Any
src_set
str
use_map
str

Event Triggers

See the full list of default event triggers

Built with Reflex