Customization
ContextAwareComponent
Section titled “ContextAwareComponent”ContextAwareComponent<
Context> =React.ComponentType<{context:Context; }>
Used for the custom components that accept the message list context prop.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
Context | any | The type of the context passed to the list. |
FooterWrapperComponent
Section titled “FooterWrapperComponent”FooterWrapperComponent =
React.ComponentType<object&React.RefAttributes<HTMLDivElement>>
The type of the component used to wrap the Footer custom component.
HeaderWrapperComponent
Section titled “HeaderWrapperComponent”HeaderWrapperComponent =
React.ComponentType<object&React.RefAttributes<HTMLDivElement>>
The type of the component used to wrap the Header custom component.
ItemContent
Section titled “ItemContent”ItemContent<
Data,Context> =React.ComponentType<{context:Context;data:Data;index:number;nextData:Data|null;prevData:Data|null; }>
A React component that’s used to render the individual item.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
Data | any | The type of the data items in the list. |
Context | any | The type of the context passed to the list. |
ScrollElementComponent
Section titled “ScrollElementComponent”ScrollElementComponent<
Context> =React.ComponentType<React.HTMLProps<HTMLDivElement> &object&React.RefAttributes<HTMLDivElement>>
The type of the component that can be used for the scroll element.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
Context | any | The type of the context passed to the list. |
StickyFooterWrapperComponent
Section titled “StickyFooterWrapperComponent”StickyFooterWrapperComponent =
React.ComponentType<object&React.RefAttributes<HTMLDivElement>>
The type of the component used to wrap the StickyFooter custom component.
StickyHeaderWrapperComponent
Section titled “StickyHeaderWrapperComponent”StickyHeaderWrapperComponent =
React.ComponentType<object&React.RefAttributes<HTMLDivElement>>
The type of the component used to wrap the StickyHeader custom component.