Skip to main content

DyteImageViewer

A component which shows an image sent via chat.

<DyteImageViewer
image={{
type: 'image',
link: 'https://images.unsplash.com/photo-1657788913374-11f55e6afefe?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1636&q=80',
}}
/>

Props

image

required

Image message

Type
ImageMessage

iconPack

Icon pack

Default
defaultIconPack

size

Size

Type
"lg" | "md" | "sm" | "xl"

t

Language

Default
useLanguage()