Skip to main content

UserInfo

Interfaces

UserInfoProps

Indexable

[p: string]: any

Any other properties

Properties

PropertyTypeDescription
className?stringOverrides or extends the styles applied to the component. Default null
fields?SCUserProfileFields[]User fields to display in the profile Default [real_name, date_joined, date_of_birth, website, description, bio]
user?SCUserTypeUser Object Default null
userId?numberId of user object Default null

Functions

UserInfo()

UserInfo(inProps): Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCUserInfo-rootStyles applied to the root element.
field.SCUserInfo-fieldStyles applied to the field element.

Parameters

ParameterTypeDescription
inPropsUserInfoProps

Returns

Element


UserInfoSkeleton()

UserInfoSkeleton(): Element

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

Import

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

Component Name

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

CSS

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

Returns

Element