Feed

A scrolling article feed appends original sample entries when focus or scrolling reaches the end. Article labels, summaries, position metadata, and aria-busy support reading while content arrives. A Load more button provides a direct alternative.

Corresponding W3C APG example

Example

Museum journal

Read articles with Page Down and Page Up. More articles load when you reach the end. Control+End leaves the feed.

Museum journal 1

A closer look at object 1: discover its materials, makers, and place in the collection.

Museum journal 2

A closer look at object 2: discover its materials, makers, and place in the collection.

Museum journal 3

A closer look at object 3: discover its materials, makers, and place in the collection.

Keyboard interaction

PageDown and PageUp move between articles. Control+Home goes to the first article; Control+End moves to Load more after the feed. Tab visits articles and their native controls.

Events

Listen on the widget or delegate to <axxy-scope> or document. All custom events bubble.

  • axxy-feed-load — Dispatched when scrolling or focus nears the end of the feed to request more articles. (target: [role="feed"], detail: None)

Events reference and examples

Example HTML

<axxy-scope>
  <h3 id="journal-title">Museum journal</h3>
  <p id="journal-help">Read articles with Page Down and Page Up. More articles load when you reach the end. Control+End leaves the feed.</p>
  <div role="feed" aria-labelledby="journal-title" aria-describedby="journal-help" style="max-height:24rem;overflow:auto;border:1px solid currentColor;padding:1rem">
    <article aria-describedby="journal-summary-1">
      <h4>Museum journal 1</h4>
      <p id="journal-summary-1">A closer look at object 1: discover its materials, makers, and place in the collection.</p>
      <button type="button" aria-pressed="false" aria-label="Bookmark museum journal 1">Bookmark</button>
    </article>
    <article aria-describedby="journal-summary-2">
      <h4>Museum journal 2</h4>
      <p id="journal-summary-2">A closer look at object 2: discover its materials, makers, and place in the collection.</p>
      <button type="button" aria-pressed="false" aria-label="Bookmark museum journal 2">Bookmark</button>
    </article>
    <article aria-describedby="journal-summary-3">
      <h4>Museum journal 3</h4>
      <p id="journal-summary-3">A closer look at object 3: discover its materials, makers, and place in the collection.</p>
      <button type="button" aria-pressed="false" aria-label="Bookmark museum journal 3">Bookmark</button>
    </article>
  </div>
  <button id="feed-after" type="button">Load more articles</button>
  <p role="status" id="feed-status"></p>
</axxy-scope>