Display images in your Preswald application
The Image widget allows you to display images in your Preswald application. It’s a simple wrapper around the HTML <img>
element
that provides consistent styling and integration with the Preswald framework.
Property | Type | Required | Default | Description |
---|---|---|---|---|
src | string | Yes | - | The URL or path to the image |
alt | string | No | ” | Alternative text for the image |
className | string | No | ” | Additional CSS classes to apply to the image |
Display images in your Preswald application
The Image widget allows you to display images in your Preswald application. It’s a simple wrapper around the HTML <img>
element
that provides consistent styling and integration with the Preswald framework.
Property | Type | Required | Default | Description |
---|---|---|---|---|
src | string | Yes | - | The URL or path to the image |
alt | string | No | ” | Alternative text for the image |
className | string | No | ” | Additional CSS classes to apply to the image |