rss-latest-articles-web-component
v1.0.0
Published
Framework-agnostic custom element that renders latest RSS articles with thumbnails
Downloads
98
Maintainers
Readme
rss-latest-articles-web-component
A framework-agnostic HTML Custom Element that renders the latest articles from an RSS URL.
Install
npm install rss-latest-articles-web-componentUsage
<script type="module">
import 'rss-latest-articles-web-component';
</script>
<rss-latest-articles rss-url="/api/rss.xml?url=https%3A%2F%2Fwww.spiegel.de%2Findex.rss" limit="5"></rss-latest-articles>Attributes
rss-url(string): RSS feed URL or your server endpoint URLlimit(number): Number of items to render (default5, max50)
Notes
- For browser apps, use a server-side RSS endpoint to avoid cross-origin restrictions.
- The component renders a gray thumbnail placeholder when an article has no image.
