Interface RenderFormProps<TFieldValues>

Interface representing the properties for rendering the form.

interface RenderFormProps<TFieldValues> {
    columns?: number;
    fluid?: boolean;
    footer?: ReactNode;
    gap?: string;
    header?: ReactNode;
    renderFields?: RenderFieldsFunction<TFieldValues>;
    style?: CSSProperties;
    submitButtonLoader?: ReactNode;
    submitButtonStyle?: CSSProperties;
    submitButtonText?: ReactNode;
}

Type Parameters

  • TFieldValues extends FieldValues

    The type of field values.

Properties

columns?: number

Number of columns in the form layout.

fluid?: boolean

Whether the form should be fluid (responsive).

footer?: ReactNode

Custom footer for the form.

gap?: string

Gap between form fields.

header?: ReactNode

Custom header for the form.

Function to render form fields.

style?: CSSProperties

CSS styles for the form container.

submitButtonLoader?: ReactNode

Loader for the submit button when loading.

submitButtonStyle?: CSSProperties

CSS styles for the submit button.

submitButtonText?: ReactNode

Text for the submit button.