

Every state


default


hover


focus


loading


loaded


done


locale
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| shown | number | 24 | How many are on screen now. |
| total | number | 312 | Total. |
| step | number | 24 | How many one press adds; used by the default loader and the loading text. |
| locale | string | "en-GB" | Formats the counts (BCP 47, "nl-NL" gives 1.240). |
| countText | string | "Showing {shown} of {total} products" | {shown} and {total} are filled in. |
| buttonLabel | string | "Load more" | Button label. |
| loadingText | string | "Loading {step} more…" | On the button while loading. {step} is filled in. |
| doneText | string | "That’s all {total} products" | Shown when everything is on screen. {total} is filled in. |
| loading | boolean | – | A batch is loading: when you drive the loading yourself. |
| onLoadMore | (shown: number) => Promise<number> | number | – | Loads the next batch and resolves to the new number shown. Left out: a local example that waits a moment and adds `step`. |
| className | string | – | Extra classes on the outer element. |


