Skip to main content
The Image Control is a versatile component designed to display images in your application. It supports various configurations, including custom dimensions, preview functionality, and custom styles. Below is a detailed guide on how to use and configure this control.

Properties

The Image Control accepts the following properties:

value

  • Type: string or Array<{ url: string }>
  • Description:
    • The image source. It can be a direct URL string or an array of objects containing URLs.
    • If the input is a JSON string, it will be automatically parsed to extract the image URL.
    • Example:
      or

Properties

  • Type: object
  • Description:
    • A configuration object to customize the appearance and behavior of the image.
    • Supported properties:

customStyles

The styleproperty allows you to modify the appearance of the image using CSS styles. These styles are passed as a JSON object.

Example

To add a red border and rounded corners to the image, you can configure styleas follows:

tailwindClasses

The styleproperty allows you to modify the appearance of the image using tailwind classes. More info https://tailwindcss.com/