Button

Load More

Loading a list by button: a counter of what is shown, the same share as a bar and an honest loading state instead of an endless feed.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • the idle, loading and end labels through the label, loadingLabel and doneLabel props
  • the counter template through the counterText prop with {shown} and {total}
  • the initial numbers and the step through the shown, total and step props

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Load More — Loading a list by button: a counter of what is shown, the same share as a bar and an honest loading state instead of an endless feed.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/button-067?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Button067
  shown={items.length}
  total={total}
  step={20}
  onLoadMore={(next) => fetchUpTo(next)}
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Label
label · default: Load more
Loading label
loadingLabel · default: Loading…
End label
doneLabel · default: That is everything
Counter
counterText · default: Showing {shown} of {total}
Shown
shown · default: 20
Total
total · default: 340
Step
step · default: 20
Accent
accent · default: theme colour
Surface
background · default: theme colour

FAQ

How do I add Load More with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Load More depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Load More?
Adapt: the idle, loading and end labels through the label, loadingLabel and doneLabel props; the counter template through the counterText prop with {shown} and {total}; the initial numbers and the step through the shown, total and step props. Keep as installed: the shown-of-total counter: without it people cannot tell whether it is two more clicks or twenty; the share bar — the same numbers for those who read shapes, not digits; the spinner in the arrow's place: the label must not shift while loading.
Is Load More free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/button-067.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

The component is self-contained: one file, no dependencies, palette in the local --vibeui-button-067-* variables. Client side: it keeps the shown counter, moves the button into the loading state on click, adds the step and calls onLoadMore with the next value. The share is written into the --vibeui-button-067-share variable and the bar below takes its width from it — no recalculation in JS. The arrow and the spinner occupy the same 0.875rem cell, so the label never shifts. Once everything is shown the button is disabled and changes its label.

Tags

  • button
  • pagination
  • load-more
  • list
  • async
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…