UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

72 lines (63 loc) 1.83 kB
import React from 'react'; export interface AccountChangeMailValidationProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Validation code sent by email to the user * @default empty string */ validationCode: string; /** * Id (userId) sent by email to the user * @default null */ userId: number; /** * New email sent by email to the user * @default null */ newEmail: string; /** * Callback triggered on success * @default null */ onSuccess?: (res: any) => void; /** * Action component to display after success message * */ successAction?: React.ReactNode; /** * Callback triggered on error * @default null */ onError?: (res: any) => void; /** * Action component to display after error message * */ errorAction?: React.ReactNode; /** * Other props */ [p: string]: any; } /** * > API documentation for the Community-JS AccountChangeMailValidation component. Learn about the available props and the CSS API. #### Import ```jsx import {AccountChangeMailValidation} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCAccountChangeMailValidation` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCAccountChangeMailValidation-root|Styles applied to the root element.| |success|.SCAccountChangeMailValidation-success|Styles applied to the success Alert.| |error|.SCAccountChangeMailValidation-error|Styles applied to the error Alert.| * * @param inProps */ export default function AccountChangeMailValidation(inProps: AccountChangeMailValidationProps): JSX.Element;