Skip to main content

Category Trending Feed Widget

The Category Trending Feed Widget renders a specific category's trending posts, discussions, statuses list.
This list is composed of feed object items containing the avatar and username of the author, the item content, the date of creation of the same and a "comment" button that allows users to browse to the post, discussion or status extended version.
The feed objects are shown in an orderly manner: few items are shown in the main card while the others can be displayed in a modal card by clicking on the "show more" button.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {CategoryTrendingFeedWidget} from '@selfcommunity/react-ui';

function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><CategoryTrendingFeedWidget /></SCContextProvider>
);
}