Skip to main content

Module: FeedObject

Interfaces

Functions

FeedObject

FeedObject(inProps): JSX.Element

API documentation for the Community-JS Feed Object component. Learn about the available props and the CSS API.

This component renders a feed object item (post, discussion or status). Take a look at our demo component here

Import

import {FeedObject} from '@selfcommunity/react-ui';

Component Name

The name SCFeedObject can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCFeedObject-rootStyles applied to the root element.
deleted.SCFeedObject-deletedStyles applied to the feed obj when is deleted (visible only for admin and moderator).
header.SCFeedObject-headerStyles applied to the header of the card.
category.SCFeedObject-categoryStyles applied to the category element.
avatar.SCFeedObject-avatarStyles applied to the avatar element.
username.SCFeedObject-usernameStyles applied to the username element.
activityAt.SCFeedObject-activity-atStyles applied to the activity at section.
tag.SCFeedObject-tagStyles applied to the tag element.
location.SCFeedObject-locationStyles applied to the location element.
content.SCFeedObject-contentStyles applied to the content section. Content section include: title-section, text-section, snippetContent, subContent, medias-section, polls-section, info-section.
error.SCFeedObject-errorStyles applied to the error element.
title-section.SCFeedObject-title-sectionStyles applied to the title section.
title.SCFeedObject-titleStyles applied to the title element.
text-section.SCFeedObject-text-sectionStyles applied to the text section.
text.SCFeedObject-textStyles applied to the text element.
snippet.SCFeedObject-snippetStyles applied to snippet element.
snippet-content.SCFeedObject-snippet-contentStyles applied to snippet content element.
medias-section.SCFeedObject-medias-sectionStyles applied to the medias section.
polls-section.SCFeedObject-polls-sectionStyles applied to the polls section.
info-section.SCFeedObject-info-sectionStyles applied to the info section.
actions-section.SCFeedObject-actions-sectionStyles applied to the actions container.
reply-content.SCFeedObject-reply-contentStyles applied to the reply box.
activitiesSection.SCFeedObject-activities-sectionStyles applied to the activities section element.
activitiesContent.SCFeedObject-activities-contentStyles applied to the activities content element.
followButton.SCFeedObject-follow-buttonStyles applied to the follow button element.

Parameters

NameType
inPropsFeedObjectProps

Returns

JSX.Element

Defined in

packages/react-ui/src/components/FeedObject/FeedObject.tsx:320


FeedObjectSkeleton

FeedObjectSkeleton(props): JSX.Element

API documentation for the Community-JS Feed Object Skeleton component. Learn about the available props and the CSS API.

Import

import {FeedObjectSkeleton} from '@selfcommunity/react-ui';

Component Name

The name SCFeedObject-skeleton-root can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCFeedObject-skeleton-rootStyles applied to the root element.
media.SCFeedObject-mediaStyles applied to the media element.

Parameters

NameType
propsObject
props.template?SCFeedObjectTemplateType

Returns

JSX.Element

Defined in

packages/react-ui/src/components/FeedObject/Skeleton.tsx:54