Skip to main content

Viewer


The Viewer element displays image-based content. Use this element to show static visual information, such as attachments, scanned documents, or media previews. It supports both incoming and outgoing file previews in the messaging interface.

Properties

PropertyValueDescription
TypeViewerUI component type
GroupImageBelongs to the "Image" group in UI catalog
Identifier(Not listed)Unique element ID (not specified in table)
PreviewSee image preview above
ValueYDisplays a static value
MandatoryNot required for input
ErrorDoes not display error states
MinNo defined minimum
MaxNo defined maximum
Read-onlyAlways static and non-editable
Text, IconDoes not display additional icons
ChildrenNot a container for nested fields
ListNot used in list structures
EventDoes not trigger interactive events
ShadeDoes not include background shading

SDK Integration

The Viewer element appears in the User Chat flow:


Method: /messages/user-chat

Displays file attachments such as uploaded documents or images in the chat interface. Viewer supports both received and sent files. The interface loads it dynamically depending on message type and alignment (incoming vs. outgoing).


Example UI Placement

LevelReferenceTypeValuePlacement
3attachment (incoming)ViewerReceived documentInside incoming message container
3attachment (outgoing)ViewerSent documentInside outgoing message container

Notes

  • Use for static file previews in messaging flows.
  • Automatically adapts for both desktop and mobile.
  • Optimized for lightweight image or PDF formats.
  • Cannot edit or download directly from this field.