UNPKG

@brightlayer-ui/react-auth-workflow

Version:

Re-usable workflow components for Authentication and Registration within Eaton applications.

29 lines (28 loc) 1.01 kB
import { TextFieldProps } from '@mui/material'; import { WorkflowCardProps } from '../../components/WorkflowCard/WorkflowCard.types.js'; import { ErrorManagerProps } from '../../components/Error/types.js'; export type CreateAccountScreenProps = WorkflowCardProps & { /** * The label for the email field */ emailLabel?: string; /** * The initial value for the email text field */ initialValue?: string; /** * The function used to test the input for valid formatting * @param {string} email - validate format via EMAIL_REGEX * @returns boolean | string */ emailValidator?: (email: string) => boolean | string; /** * The props to pass to the email text field. * See [MUI's TextFieldProps API](https://mui.com/material-ui/api/text-field/) for more details. */ emailTextFieldProps?: TextFieldProps; /** * The configuration for customizing how errors are displayed */ errorDisplayConfig?: ErrorManagerProps; };