Component Catalog

Image

Responsive image display with fit and sizing options.

A2UI → Nuxt UI Mapping

A2UI PropertyHTML Result
url<img> src attribute
altAlt text for accessibility
fitCSS object-fit value (cover, contain, fill)

Example JSONL

{"version":"v0.10","createSurface":{"surfaceId":"img_demo","catalogId":"standard"}}
{"version":"v0.10","updateComponents":{"surfaceId":"img_demo","components":[
  {"id":"root","component":"Column","children":["photo"]},
  {"id":"photo","component":"Image","url":"https://picsum.photos/600/400","alt":"Random photo"}
]}}

Properties

PropertyTypeRequiredDefaultDescription
urlstringImage source URL
altstring""Alt text for screen readers
fitenumCSS object-fit: "cover", "contain", "fill"

Rendering Details

  • Uses a native <img> element with responsive width
  • alt text is passed through for accessibility
  • No lazy-loading by default (can be added via renderer config)

Try It

Copy the JSONL above and paste it in the Playground Paste tab.