Feed
Scrollable feed of articles with accessibility.
Usage
<w-feed label="News feed">
<w-slot item>
<article>
<h2>Article Title</h2>
<p>Article content...</p>
</article>
</w-slot>
<w-slot item>
<article>
<h2>Another Article</h2>
<p>More content...</p>
</article>
</w-slot>
</w-feed>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "" | Accessible label |
busy | boolean | false | Loading more items |
Slots
| Slot | Element | Description |
|---|---|---|
item | Article | Feed items |
Keyboard
| Key | Action |
|---|---|
Page Down | Next article |
Page Up | Previous article |
Accessibility
- Container has
role="feed" - Items have
role="article"witharia-posinsetandaria-setsize aria-busyduring loading- Screen readers announce article position