Skip to main content

AccountReset

Interfaces

AccountResetProps

Indexable

[p: string]: any

Other props

Properties

PropertyTypeDescription
ButtonProps?ButtonPropsDefault props to submit button Input Default {variant: 'contained'}
className?stringOverrides or extends the styles applied to the component. Default null
errorAction?ReactNodeAction component to display after error message
onError?(res) => voidCallback triggered on error sign in Default null
onSuccess?(res) => voidCallback triggered on success sign in Default null
successAction?ReactNodeAction component to display after success message
TextFieldProps?TextFieldPropsDefault props to TextField Input Default {variant: 'outlined'}
validationCodestringValidation code sent by email to the user Default empty string

Functions

AccountReset()

AccountReset(inProps): Element

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

This component allows users to log in to the application with their usernames and passwords. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCAccountReset-rootStyles applied to the root element.
form.SCAccountReset-formStyles applied to the form element.
email.SCAccountReset-passwordStyles applied to the password TextField.
success.SCAccountRecover-successStyles applied to the success Alert.
error.SCAccountRecover-errorStyles applied to the error Alert.

Parameters

ParameterTypeDescription
inPropsAccountResetProps

Returns

Element