Skip to main content

UserProfileEdit

Interfaces

UserProfileEditProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
UserProfileEditSectionAccountProps?UserProfileEditSectionAccountPropsProps to apply to Account section

Default
{}
UserProfileEditSectionPublicInfoProps?Omit <UserProfileEditSectionPublicInfoProps, "fields">Props to apply to PublicInfo section

Default
{}
UserProfileEditSectionSettingsProps?Omit <UserProfileEditSectionPublicInfoProps, "settings">Props to apply to Settings section

Default
{}
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]
id?stringId of user object

Default
null
settings?SCUserProfileSettings[]Settings to display in the profile

Default
[notification, interaction, private_message]

UserProfileEditSectionAccountProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
AccountCredentialProps?AccountCredentialPropsProps to apply to Account credential section

Default
{}
AccountDeleteButtonProps?AccountDeleteButtonPropsProps to apply to Account delete button

Default
{}
LanguageSwitcherProps?LanguageSwitcherPropsProps to apply to LanguageSwitcher component

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

Default
null
endActions?ReactNodeActions to be inserted after social associations section

Default
null
handleAssociationCreate?(provider: any) => voidHandles create association callback
showCredentialsSection?booleanIf true, shows email and password section

Default
false
showLanguageSwitcher?booleanIf true, shows language switcher

Default
false
showSocialAccountSection?booleanIf true, shows social account section

Default
true
startActions?ReactNodeActions to be inserted before credentials section

Default
null

UserProfileEditSectionPublicInfoProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
className?stringOverrides or extends the styles applied to the component.

Default
null
endActions?ReactNodeActions to be inserted at the end

Default
null
fields?SCUserProfileFields[]User fields to display in the profile

Default
[real_name, date_joined, date_of_birth, website, description, bio]
id?stringId of user object

Default
null
onEditFailure?(editedField?: Record<string, any>) => voidCallback on edit data with error
onEditSuccess?(editedField?: Record<string, any>) => voidCallback on edit data with success
startActions?ReactNodeActions to be inserted at the start

Default
null

UserProfileEditSectionSettingsProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
className?stringOverrides or extends the styles applied to the component.

Default
null
endActions?ReactNodeActions to be inserted at the end

Default
null
id?stringId of user object

Default
null
onEditSuccess?() => voidCallback on edit data with success
settings?SCUserProfileSettings[]Settings to display in the profile

Default
[notification, interaction, private_message]
startActions?ReactNodeActions to be inserted at the start

Default
null

Functions

UserProfileEdit()

UserProfileEdit(inProps): JSX.Element

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

This component renders a section composed of different tabs where the user can edit the settings about its public information, account and notifications. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCUserProfileEdit-rootStyles applied to the root element.
tabs.SCUserProfileEdit-tabsStyles applied to the tab elements.
tabsContent.SCUserProfileEdit-tabs-contentStyles applied to tab content elements.

Parameters

ParameterTypeDescription
inPropsUserProfileEditProps

Returns

JSX.Element

Source

packages/react-ui/src/components/UserProfileEdit/UserProfileEdit.tsx:102


UserProfileEditSectionAccount()

UserProfileEditSectionAccount(props): JSX.Element

Parameters

ParameterType
propsUserProfileEditSectionAccountProps

Returns

JSX.Element

Source

packages/react-ui/src/components/UserProfileEdit/Section/Account.tsx:101


UserProfileEditSectionPublicInfo()

UserProfileEditSectionPublicInfo(props): JSX.Element

Parameters

ParameterType
propsUserProfileEditSectionPublicInfoProps

Returns

JSX.Element

Source

packages/react-ui/src/components/UserProfileEdit/Section/PublicInfo.tsx:109


UserProfileEditSectionSettings()

UserProfileEditSectionSettings(props): JSX.Element

Parameters

ParameterType
propsUserProfileEditSectionSettingsProps

Returns

JSX.Element

Source

packages/react-ui/src/components/UserProfileEdit/Section/Settings.tsx:66


UserProfileEditSkeleton()

UserProfileEditSkeleton(): JSX.Element

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

Import

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

Component Name

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

CSS

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

Returns

JSX.Element

Source

packages/react-ui/src/components/UserProfileEdit/Skeleton.tsx:36