OverflowList
Hide items that do not fit in a container and display them as a single collapsed item
Source
LLM docs
Docs
Package
Usage
Data type
OverflowList data prop supports an array of any type. By default, OverflowList infers
data type from the data array automatically. To specify data type explicitly, pass
generic type argument to the component:
Max rows
Use maxRows to limit visible rows count. By default, 1 row is visible.
Max visible items
Use maxVisibleItems to limit visible items count. By default, there is no limit.
Collapse from
Use collapseFrom prop to control from which direction items are collapsed
when they overflow. By default, items are collapsed from the end. Set
collapseFrom="start" to collapse items from the beginning – this is useful
for breadcrumb-like patterns where the last items should remain visible.
Example: overflow with hover card
You can use any React components in renderOverflow function. Example
of displaying collapsed items inside HoverCard: