Infinite scroll

Loads more content on scroll.

Scroll to the bottom of the list — a new batch loads automatically until the cap is reached.

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8

API reference

Inputs

PropTypeDefaultDescription
loadingbooleanfalseWhether a load is in progress; shows the spinner and suppresses new emits.
finishedbooleanfalseWhether all items are loaded; shows the end message and suppresses emits.
thresholdnumber200Pixel margin below the viewport at which the sentinel triggers loading.

Outputs

EventPayloadDescription
morevoidEmits when the sentinel scrolls into view or the fallback button is pressed.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.