You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/React/components/contexts/component-context.mdx
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,18 +71,18 @@ Custom UI component to display a user's avatar.
71
71
72
72
### BaseImage
73
73
74
-
Custom UI component to display image resp. a fallback in case of load error, in `<img/>` element. The default resp. custom (from `ComponentContext`) `BaseImage` component is rendered by:
74
+
Custom UI component to display image resp. a fallback in case of load error, in `<img/>` element. The default resp. custom (from `ComponentContext`) `BaseImage` component is rendered by:
75
75
76
-
- <GHComponentLinktext='Image'path='/Gallery/Image.tsx'/> - single image attachment in message list
77
-
- <GHComponentLinktext='Gallery'path='/Gallery/Gallery.tsx'/> - group of image attachments in message list
78
-
- <GHComponentLinktext='AttachmentPreviewList'path='/MessageInput/AttachmentPreviewList.tsx'/> - image uploads preview in message input (composer)
76
+
- <GHComponentLinktext='Image'path='/Gallery/Image.tsx'/> - single image attachment in message list
77
+
- <GHComponentLinktext='Gallery'path='/Gallery/Gallery.tsx'/> - group of image attachments in message list
78
+
- <GHComponentLinktext='AttachmentPreviewList'path='/MessageInput/AttachmentPreviewList.tsx'/> - image uploads preview in message input (composer)
79
79
80
80
The `BaseImage` component accepts the same props as `<img/>` element.
81
81
82
82
The [default `BaseImage` component](../../utility-components/base-image) tries to load and display an image and if the load fails, then an SVG image fallback is applied to the `<img/>` element as a CSS mask targeting attached `str-chat__base-image--load-failed` class.
Custom UI component to render set of buttons to be displayed in the <GHComponentLinktext='MessageActionsBox'path='/MessageActions/MessageActionsBox.tsx' />.
/** Custom UI component to display the slow mode cooldown timer, defaults to and accepts same props as: [CooldownTimer](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/CooldownTimer.tsx) */
/** Custom UI component to render set of buttons to be displayed in the MessageActionsBox, defaults to and accepts same props as: [CustomMessageActionsList](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageActions/CustomMessageActionsList.tsx) */
/** Custom UI component for date separators, defaults to and accepts same props as: [DateSeparator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/DateSeparator.tsx) */
/** Custom UI component to override default edit message input, defaults to and accepts same props as: [EditMessageForm](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/EditMessageForm.tsx) */
0 commit comments