IInfiniteScrollProps

interface
Layout

Props contract for OrigamInfiniteScroll — configures scroll side, intersection mode, empty/load-more text labels, root margin, and visual surfaces.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

side
TInfiniteScrollSide
Which end of the scroll container triggers load ('start' | 'end' | 'both').
mode
TInfiniteScrollMode
Intersection mode: 'intersect' (automatic) or 'manual' (shows a load-more button).
loadMoreText
string
Label for the manual load-more button.
emptyText
string
Text displayed when done is called with empty.
margin
string
IntersectionObserver rootMargin for the sentinel.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Automatic infinite scroll on the bottom of a list

vue