Skip to main content

Common Examples

To use the UserMessage, pass content and a required timestamp. The bubble right-aligns. The kit forbids children.
content accepts a string or composed React Native nodes. Copy is text-only: pass copyText when content is rich so the copy action stays available. The kit does not write to the clipboard. Provide onCopy to show the copy control.

Error and retry

Pass error to render a failure line under the bubble. onRetry only appears when error is also set.

Accessibility

  • The toolbar groups user actions with the timestamp.
  • Retry is available only when error is set.
  • Built-in toolbar labels are English until the kit gains an i18n layer.
Last modified on September 1, 2026