Skip to main content
Version: 0.1.2

Type Alias: FormComponent

Imported from @react-logic/utils

FormComponent<S> = (props) => ReactElement & object

Bound form component returned by useForm. Renders a <form> element and exposes three proxies as properties: bind (raw props to spread), error (per-validator-name error maps), and inputs (pre-built <input> / <select> components per field — sugar for the common spread case).

Type Declaration

bind

readonly bind: Bind<S>

error

readonly error: ErrorTree<S>

inputs

readonly inputs: Inputs<S>

Type Parameters

S

S extends Schema