Skip to main content

UserInfo

Interfaces

UserInfoProps

Indexable

[p: string]: any

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): JSX.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

JSX.Element

Source

packages/react-ui/src/components/UserInfo/UserInfo.tsx:124


UserInfoSkeleton()

UserInfoSkeleton(): JSX.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

JSX.Element

Source

packages/react-ui/src/components/UserInfo/Skeleton.tsx:38