

Every state


default


hover


focus


loading


paused


error


end
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| loaded | number | 24 | How many are loaded now. |
| total | number | 312 | Total. |
| step | number | 24 | How many one load adds; used by the default loader. |
| locale | string | "en-GB" | Formats the counts (BCP 47). |
| autoLoads | number | 3 | Batches loaded by scrolling before only the button loads more. 0: button only. |
| countText | string | "{loaded} of {total} products" | {loaded} and {total} are filled in. |
| scrollHint | string | null | "Scroll for more, or" | Before the button while scrolling still loads. Null: the count alone. |
| buttonLabel | string | "Load more" | Button label. |
| loadingText | string | "Loading more products…" | Loading text. |
| endText | string | "You’ve seen all {total} products" | {total} is filled in. |
| errorText | string | "Those didn’t load. Check your connection." | Error text. |
| retryLabel | string | "Try again" | Retry label. |
| backToTop | { href: string; label: string } | null | { href: "#top", label: "Back to top" } | A link back to the top of the list, on the end line. Null: none. |
| loading | boolean | – | A batch is loading: when you drive the loading yourself. |
| error | boolean | – | The last load failed: shows the error and Try again. |
| onLoad | (loaded: number) => Promise<number> | number | – | Loads the next batch and resolves to the new number loaded; reject to show the error. Left out: a local example that waits a moment and adds `step`. |
| className | string | – | Extra classes on the outer element. |
More pagers
All 4pager-02 is in UI ProGet UI Pro, €199


