UNPKG

@selfcommunity/react-ui

Version:

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

62 lines (53 loc) 1.51 kB
import React from 'react'; export interface AccountVerifyProps { /** * 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; /** * Callback triggered on success sign in * @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 AccountVerify component. Learn about the available props and the CSS API. #### Import ```jsx import {AccountVerify} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCAccountVerify` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCAccountVerify-root|Styles applied to the root element.| |success|.SCAccountVerify-success|Styles applied to the success Alert.| |error|.SCAccountVerify-error|Styles applied to the error Alert.| * * @param inProps */ export default function AccountVerify(inProps: AccountVerifyProps): JSX.Element;