Group
Interfaces
GroupProps
Properties
className?
optionalclassName:string
Overrides or extends the styles applied to the component.
Default
null
FeedObjectProps?
optionalFeedObjectProps:FeedObjectProps
Props to spread to single feed object
Default
empty object
FeedSidebarProps?
optionalFeedSidebarProps:StickyBoxProps
Props to spread to single feed object
Default
{top: 0, bottomBoundary: `#${id}`}
group?
optionalgroup:SCGroupType
Group Object
Default
null
GroupFeedProps?
optionalGroupFeedProps:GroupFeedProps
Props to spread to GroupFeed component
Default
{}
GroupHeaderProps?
optionalGroupHeaderProps:GroupHeaderProps
Props to spread Group Header component
Default
{}
groupId?
optionalgroupId:number
Id of the group for filter the feed
Default
null
id?
optionalid:string
Id of the feed object
Default
'feed'
widgets?
optionalwidgets:SCFeedWidgetType[]
Widgets to be rendered into the feed
Default
[CategoriesFollowed, UserFollowed]
Functions
Group()
Group(
inProps):Element
API documentation for the Community-JS Category Template. Learn about the available props and the CSS API.
This component renders a specific group's template. Take a look at our demo component here
Import
import {Group} from '@selfcommunity/react-templates';
Component Name
The name SCGroupTemplate can be used when providing style overrides in the theme.
CSS
| Rule Name | Global class | Description |
|---|---|---|
| root | .SCGroupTemplate-root | Styles applied to the root element. |
| feed | .SCGroupTemplate-feed | Styles applied to the feed element. |
Parameters
| Parameter | Type | Description |
|---|---|---|
inProps | GroupProps |
Returns
Element
GroupSkeleton()
GroupSkeleton():
Element
API documentation for the Community-JS Group Skeleton Template. Learn about the available props and the CSS API.
Import
import {GroupSkeletonTemplate} from '@selfcommunity/react-templates';
Component Name
The name SCGroupTemplate-skeleton-root can be used when providing style overrides in the theme.
CSS
| Rule Name | Global class | Description |
|---|---|---|
| root | .SCGroupTemplate-skeleton-root | Styles applied to the root element. |
Returns
Element