Home
Overview
Infinite-scrolling feed for RIXL content with automatic playback, lazy loading, and built-in analytics
Overview
The Feed component provides a vertical, scrollable feed of RIXL image and video posts. It is implemented as a Lit web component (<rixl-feed>) and wrapped for React, so analytics, pagination, and scroll behavior are consistent across every framework.
Quick Example
import {Feed} from "@rixl/media-react";
function FeedPage() {
return <Feed feedId="my-feed-id" analyticsPage="feed" onRixlAnalytics={(e) => console.log(e.detail.event)} />;
}Key Features
- Vertical feed of image and video posts
- Automatic play/pause of visible video posts
autoscrollandloopmodesfeedId,lang, andfeedFontpropagation to all child postsinitialIndexandsafeAreaTabBarlayout control- Direct-data mode with
postsandonFetchMore - Built-in analytics:
feed_refresh,scroll,load_more,post_change - Child
ImageandVideoevents bubble up throughonRixlAnalytics
When to Use
The Feed component is perfect for:
- Social media platforms requiring vertical scrolling feeds
- Content discovery applications with video and image posts
- Creator platforms with user-generated content
- Mobile-first apps with TikTok-style experiences
- Community platforms with feed-based content distribution
Feed child posts are rendered as <rixl-image> and <rixl-video> web components. Their feedId and postId are set automatically by the feed.