Avenra
React Step FormAPI Reference
React Step FormAPI Reference

Controller

Connect inputs to wizard state.

Connects custom or native inputs to wizard state.

Basic usage

const TypedController = Controller<SignupValues>;

<TypedController
    name="email"
    render={({ field, fieldState }) => (
        <>
            <input type="email" {...field} />
            {fieldState.error ? <p>{fieldState.error}</p> : null}
        </>
    )}
/>;

Props

Prop

Type

On this page