0.4.6 • Published 2 years ago
fw-headless-ui v0.4.6
Firework Headless UI
The fw-headless-ui Feed Component is a React-based UI component that allows you to display a list of feed items with built-in support for pagination and lazy loading when the user scrolls towards the end.
Installation
To get started, install Firework Headless UI via npm:
npm install fw-headless-ui
Example Usage
Here's an example of how you can use the Feed component:
import React from "react";
import {
Feed,
FeedItem,
FeedItemThumbnail,
FeedItemTitle,
NextPageButton,
PrevPageButton,
Scroll,
} from "fw-headless-ui";
const MyFeed = ({ feed }) => {
return (
<Feed data={feed}>
{(feedItems) => (
<>
<PrevPageButton />
<Scroll>
{feedItems.map((feedItem) => (
<FeedItem key={feedItem.id} data={feedItem}>
<FeedItemThumbnail />
<FeedItemTitle />
</FeedItem>
))}
</Scroll>
<NextPageButton />
</>
)}
</Feed>
);
};
Documentation
See Firework for Developers > Headless Components
Contributing
Check contributing guide to get started.
0.4.6
2 years ago
0.4.5
2 years ago
0.4.4
2 years ago
0.4.3
2 years ago
0.4.2
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.4.0-beta.2
2 years ago
0.4.0-beta.1
2 years ago
0.4.0-beta.0
2 years ago
0.3.7
2 years ago
0.3.6
2 years ago
0.3.5
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago