Skip to content

Customization

ContextAwareComponent<Context> = React.ComponentType<{ context: Context; }>

Used for the custom components that accept the message list context prop.

Type ParameterDefault typeDescription
ContextanyThe type of the context passed to the list.

FooterWrapperComponent = React.ComponentType<object & React.RefAttributes<HTMLDivElement>>

The type of the component used to wrap the Footer custom component.


HeaderWrapperComponent = React.ComponentType<object & React.RefAttributes<HTMLDivElement>>

The type of the component used to wrap the Header custom component.


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 ParameterDefault typeDescription
DataanyThe type of the data items in the list.
ContextanyThe type of the context passed to the list.

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 ParameterDefault typeDescription
ContextanyThe type of the context passed to the list.

StickyFooterWrapperComponent = React.ComponentType<object & React.RefAttributes<HTMLDivElement>>

The type of the component used to wrap the StickyFooter custom component.


StickyHeaderWrapperComponent = React.ComponentType<object & React.RefAttributes<HTMLDivElement>>

The type of the component used to wrap the StickyHeader custom component.