Interface: Components<Data, Context>
Customize the Virtuoso rendering by passing a set of custom components.
Type Parameters
Data
Data = unknown
Context
Context = unknown
Properties
EmptyPlaceholder?
optionalEmptyPlaceholder:ComponentType<ContextProp<Context>>
Set to render a custom UI when the list is empty.
Footer?
optionalFooter:ComponentType<ContextProp<Context>>
Set to render a component at the bottom of the list.
Group?
optionalGroup:ComponentType<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>,"style"|"children"> &object&ContextProp<Context>>
Set to customize the group item wrapping element. Use only if you would like to render list from elements different than a div.
Header?
optionalHeader:ComponentType<ContextProp<Context>>
Set to render a component at the top of the list.
The header remains above the top items and does not remain sticky.
Item?
optionalItem:ComponentType<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>,"style"|"children"> &object&ContextProp<Context>>
Set to customize the item wrapping element. Use only if you would like to render list from elements different than a div.
List?
optionalList:ComponentType<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>,"style"|"children"> &RefAttributes<HTMLDivElement> &object&ContextProp<Context>>
Set to customize the items wrapper. Use only if you would like to render list from elements different than a div.
Scroller?
optionalScroller:ComponentType<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>,"style"|"children"|"tabIndex"> &RefAttributes<HTMLDivElement> &object&ContextProp<Context>>
Set to customize the outermost scrollable element. This should not be necessary in general, as the component passes its HTML attribute props to it.
ScrollSeekPlaceholder?
optionalScrollSeekPlaceholder:ComponentType<ScrollSeekPlaceholderProps&ContextProp<Context>>
Set to render an item placeholder when the user scrolls fast. See the scrollSeek property for more details.
TopItemList?
optionalTopItemList:ComponentType<TopItemListProps&ContextProp<Context>>
Set to customize the top list item wrapping element. Use if you would like to render list from elements different than a div
or you want to set a custom z-index for the sticky position.