Skip to main content

Feed Object

The Feed Object component renders a post, discussion or status item.
Every feed object item is composed of a section containing the avatar and username of the author, the item content and the date of creation of the same (post and discussion type can also contain a related poll).
There are also various actions that can be performed on these items, such as comment, like and share, which are represented by icons. Moreover, through the top right menu it is possible to get item's permanent link and to turn notifications off.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {FeedObject} 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}><FeedObject /></SCContextProvider>
);
}