Give it the items and a render function.
The sample also uses Badge. One command adds them with this item:
labels-cell.tsx
OverflowList
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| items | readonly Item[] | — | The items, in order. |
| render | — | Renders one item: return one element (an OverflowListItem is best), with no key (the list sets it from itemKey). It runs for the row, the popup, and the hidden measure clone. state.index is the place in items. state.measuring is true for the clone: return a plain copy of the same size then, with no id and no effect, and never a part that joins the roving focus of a parent (ToolbarButton → Button). The clone is inert: a parent that moves focus with the arrow keys would try to focus it and fail. | |
| item | — | A stable key for each item (an id), unique in items. Required: an index key moves the state of an item (focus, an open popup, a motion) to the wrong item when items are added, removed, or moved. | |
| collapse | "end""start" | "end" | Where items fold: end (default) keeps the first ones, start keeps the last ones. |
| min | number | 0 | Items that always show, even when they do not fit. A kept item that does not fit gets data-forced (an OverflowListItem then may shrink and cut its text). Use 1 for labels and paths, so the row never shows "+6" alone. Default 0. |
| on | — | Called when the set of hidden items changes (by item), not on each resize frame. | |
| locale | string | — | Formats the count with Intl.NumberFormat ("ar-EG": "+٣"). Default: the DisplayLocaleProvider locale, else "en-US". |
| labels | Partial<{ more: string; }> | — | The words (OVERFLOW_LIST_LABELS). Keep the object stable. |
| children | — | The indicator and its popup, with the hidden items: a Menu of links, a Popover of people. With state.measuring, return a plain copy of the same size (an OverflowListIndicator, a Button), never a ToolbarButton or a trigger. Leave it out for the default: an OverflowListIndicator that opens a Popover with the hidden items. | |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
OverflowListItem
<div>| Prop | Type | Default | Description |
|---|---|---|---|
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
OverflowListIndicator
<button>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""sm" | "sm" | |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. |
| Tab | Moves through the visible items that take focus, then to +N. |
|---|---|
| EnterorSpace | Opens the popup with the rest. |
Built with
Installs with Overflow List
- Components
- Popover,Scroll Area



