Load more
The end of a long list: the next page loads as it comes into view, failures offer a retry, a button does the same for keyboards, and the end says so.
- Bewley's Café−€12.00
- Irish Rail−€49.00
- Figma−€86.00
- Dublin Bus−€123.00
- Office Depot−€160.00
- Uber−€17.00
- Google Workspace−€54.00
- Lidl−€91.00
- Aer Lingus−€128.00
- Notion−€165.00
- Freenow−€22.00
- Tesco−€59.00
When to use
- Feeds, search results and galleries.
- Lists where pages are an implementation detail.
When not to use
- Tables people jump around in; use pagination.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/load-more
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
LoadMore
6 props
PropTypeDefaultDescription
onLoad *() => Promise<void>—Loads the next page; a thrown error shows the retry.
hasMore *boolean—
autobooleantrueLoad as soon as the end scrolls into view.
labelstring"Load more"
endLabelstring"You have reached the end"
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status and alert semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/load-more.mdThe index of every part is at /llms.txt.
More in Compare & browse
Toc progressA table of contents that reads along with you: a thin rail bends through the nested headings and fills as the page scrolls, a marker rides it to the current section, and the reading time left counts down.Marquee selectSelect many items by dragging a rubber band over them, the way a desktop does. Chosen items lift with a tick, Shift keeps what was already chosen, and a count springs up with a way to clear.Event railDated events on a rail you drag sideways. The event in the middle is full size, its neighbours shrink and dim with distance, ticks run beneath the cards and each new year's numeral drifts slowly behind them.