Represents the authentication view component.

  • Type Parameters

    • Data extends unknown = any

      The type of data.

    • Payload = any

      The type of payload.

    • Field = IField<Data, Payload>

      The type of field.

    Parameters

    • props: IAuthViewProps<Data, Payload, Field>

      The props object.

      • className

        The class name for the component.

      • style

        The inline styles for the component.

      • sx

        The sx prop for the component.

      • appName

        The name of the app.

      • Logo

        The component for the logo.

      • fields

        The array of input fields.

      • onLoadStart

        The callback function when the loading starts.

      • onLoadEnd

        The callback function when the loading ends.

      • throwError

        A boolean indicating whether to throw an error.

      • handler

        The handler function.

      • fallback

        The fallback function.

      • onAuth

        The callback function for authentication.

      • BeforeSubmit

        The component to render before submitting the form.

      • AfterSubmit

        The component to render after submitting the form.

    Returns Element

    The AuthView component.