Skip to main content

Group

Interfaces

GroupProps

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCWidget-rootStyles applied to the root element.

Extends

Indexable

[p: string]: any

Properties

PropertyTypeDescriptionInherited from
actionRedirect?booleanProp to redirect the user to the group page

Default
false
-
badgeContent?anyBadge content to show as group avatar badge if show reaction is true.-
buttonProps?ButtonBasePropsProps to spread to the button

Default
{}
-
className?stringOverrides or extends the styles applied to the component.

Default
null
WidgetProps.className
group?SCGroupTypeGroup Object

Default
null
-
groupId?numberId of the group for filter the feed

Default
null
-
groupSubscribeButtonProps?GroupSubscribeButtonPropsProps to spread to group subscribe/unsubscribe button

Default
{}
-
hideActions?booleanProp to hide actions

Default
false
-

Functions

Group()

Group(inProps): JSX.Element

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

This component renders a group item. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCGroup-rootStyles applied to the root element.
avatar.SCGroup-avatarStyles applied to the avatar element.
actions.SCGroup-actionsStyles applied to the actions section.
icon.SCGroup-iconStyles applied to the group privacy icon element.

Parameters

ParameterTypeDescription
inPropsGroupProps

Returns

JSX.Element

Source

packages/react-ui/src/components/Group/Group.tsx:119


GroupSkeleton()

GroupSkeleton(props): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCGroup-skeleton-rootStyles applied to the root element.

Parameters

ParameterType
propsWidgetProps

Returns

JSX.Element

Source

packages/react-ui/src/components/Group/Skeleton.tsx:39