UnsupportedAttachment

UnsupportedAttachment is the fallback renderer for custom or unrecognized attachment types.

Best Practices

  • Keep fallback UI minimal and non-blocking.
  • Provide clear messaging for unsupported types.
  • Avoid throwing errors for unknown attachment payloads.
  • Reuse this component rather than branching in Attachment.
  • Keep styling consistent with other attachment containers.

Props

Prop Description Type
attachment Attachment object that could not be rendered by a specialized attachment component. object
attachmentIconSize Size of the file icon shown for the unsupported attachment. 'sm' | 'md' | 'lg'
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v9: <Your Question>