Skip to main content

UserProfileEdit

Interfaces

UserProfileEditProps

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]
id?string | numberId of user object Default null
settings?SCUserProfileSettings[]Settings to display in the profile Default [notification, interaction, private_message]
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 {}

UserProfileEditSectionAccountProps

Indexable

[p: string]: any

Any other properties

Properties

PropertyTypeDescription
AccountCredentialProps?AccountCredentialPropsProps to apply to Account credential section Default {}
AccountDeleteButtonProps?AccountDeleteButtonPropsProps to apply to Account delete button 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) => voidHandles create association callback
LanguageSwitcherProps?LanguageSwitcherPropsProps to apply to LanguageSwitcher component Default {}
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

Any other properties

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?) => voidCallback on edit data with error
onEditSuccess?(editedField?) => voidCallback on edit data with success
startActions?ReactNodeActions to be inserted at the start Default null

UserProfileEditSectionSettingsProps

Indexable

[p: string]: any

Any other properties

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

Element


UserProfileEditSectionAccount()

UserProfileEditSectionAccount(props): Element

Parameters

ParameterType
propsUserProfileEditSectionAccountProps

Returns

Element


UserProfileEditSectionPublicInfo()

UserProfileEditSectionPublicInfo(props): Element

Parameters

ParameterType
propsUserProfileEditSectionPublicInfoProps

Returns

Element


UserProfileEditSectionSettings()

UserProfileEditSectionSettings(props): Element

Parameters

ParameterType
propsUserProfileEditSectionSettingsProps

Returns

Element


UserProfileEditSkeleton()

UserProfileEditSkeleton(): 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

Element