InfiniteScrollIntersect
Low-level sentinel element used by InfiniteScroll to detect when the scroll boundary enters the viewport via IntersectionObserver.
Structure
Anatomie
Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.
<origam-infinite-scroll-intersect> — a single invisible sentinel <div> observed by an IntersectionObserver.- 1.origam-infinite-scroll-intersect
- Root element. A minimal
<div>containing a non-breaking space ( ) to ensure the browser paints it. Observed byuseIntersectionObserverand fires theintersectemit on visibility change.
API
Props
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- Identifies whether this sentinel monitors the top or bottom boundary. Passed back verbatim in the intersect emit payload.
- rootRefHTMLElement—
- Reference to the scroll container used as the IntersectionObserver root. Required.
- marginstring
- CSS rootMargin passed to IntersectionObserver. Allows early or late triggering relative to the viewport edge.
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
API
Emits
Événements émis par ce composant.
- @intersect{ isIntersecting: boolean, side: TInfiniteScrollSide }
- Fired each time the sentinel's IntersectionObserver entry changes. Carries the side and the current isIntersecting state.
API
Membres exposés
Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.
- <T extends object>(props: T, exclude?: string[]) => Partial<T>
- Utility to forward a filtered subset of props to a child component.
Personnalisation
Variables CSS
Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.
- Color of the loading spinner in the parent InfiniteScroll loader slot.
- Gap between the loader and adjacent elements in the side zone.
Inclusion
Accessibilité
Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.
Notes
- The sentinel is a non-interactive, invisible element with no ARIA role. Screen readers ignore it. Announce newly loaded content via a live region on the parent component.
Fondation
Design tokens
Extrait des tokens de ce composant — les variables --origam-<composant>---<propriété>, déclarées dans sa feuille de tokens tenue à la main, sans étape de build.
- colorvar(--origam-color__action--primary---bg)
- Color passed to the OrigamProgress spinner in the loading slot.
- dimensionvar(--origam-space---3)
- Gap between loader and adjacent elements within the side zone.
- colorvar(--origam-color__text---secondary)
- Text color for the empty-state message shown when no more items are available.
Interactif
Playground
Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.
Rendu de l’aperçu en cours…
Usage
Exemples
Extraits de code prêts à coller dans vos templates.
Manual sentinel usage
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.