Overflow List

Overflow List is a copy-paste React component that stops failed item hidden behind "+3 more" before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/overflow-list
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsFailed item hidden behind "+3 more"

Was this component page useful?

How do I install Overflow List?

pnpm dlx shadcn@latest add @bollard/overflow-list

The files land in your project. They're yours to edit.

How do I use Overflow List in React?

overflow-list-usage.tsx
import { OverflowList, type OverflowItem } from "@/components/ui/overflow-list"

<OverflowList label="Checks" items={checks} max={3} />

What input mistakes does Overflow List catch?

  • Failed or error items hidden behind "+N more"
  • The signed-in user folded into the overflow
  • Bare counts that hide what kind of items are folded
  • Pinned items: always shown

What props does Overflow List accept?

OverflowList props
PropTypeDefault
items* (required)

Everything in the list, in display order.

OverflowItem[]—
max

How many items to show before folding the rest into "+N more". Pinned items may exceed it.

number4
variant

`chips` for tags and statuses, `avatars` for an overlapping people stack.

"chips" | "avatars""chips"
label* (required)

Accessible name of the list, such as "Reviewers".

string—
moreLabel

Word after the hidden count.

string"more"
lessLabel

Label of the button that folds the list back.

string"Show less"
youLabel

Text added to the current user's item.

string"You"
expanded

Controlled expanded state.

boolean—
defaultExpanded

Initial expanded state when uncontrolled.

booleanfalse
onExpandedChange

Called when the expand button is pressed.

(expanded: boolean) => void—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Overflow List accessible?

  • Labelled list; each item's text includes its status
  • Status is shown by icon and text, not colour alone
  • Avatar images have empty alt with the name in text; initials are aria-hidden

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • max is a count, not measured width
  • Warning items can still fold; only errors are always kept

What expensive mistakes does Overflow List stop?

Failed item hidden behind "+3 more"

Also known as

+n more · avatar group · chips · tags · overflow · facepile · assignees · badges

What dependencies does Overflow List require?

Overflow List facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameOverflow List
Registry identifier@bollard/overflow-list
Install commandnpx shadcn@latest add @bollard/overflow-list
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Overflow List

What form validation mistake does Overflow List catch?

Overflow List prevents failed item hidden behind "+3 more". A "+3 more" chip list or avatar stack that always keeps failed items, you and pinned items visible, and says what the overflow hides. Catches: Failed or error items hidden behind "+N more", The signed-in user folded into the overflow, Bare counts that hide what kind of items are folded, Pinned items: always shown. Limitation: validate overflow-list schemas on backend.

How do I install overflow-list with shadcn?

Run `npx shadcn@latest add @bollard/overflow-list`. Sources added: registry/default/overflow-list/overflow-list.tsx. Package requirements: lucide-react.

What props customize Overflow List?

Overflow List accepts `items`, `max`, `variant`, `label`, `moreLabel`. Configures +n more, avatar group, chips behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of overflow-list?

max is a count, not measured width. Warning items can still fold; only errors are always kept Server requirement: backend verification for overflow-list.

How does Overflow List meet accessibility guidelines?

Labelled list; each item's text includes its status. Status is shown by icon and text, not colour alone. Avatar images have empty alt with the name in text; initials are aria-hidden. Minimizes errors: +3 more hides error, avatar stack hides me.

Which components pair with Overflow List?