Skip to content

Form properties

Summary


Props table


Parameter
Type
Default
string
/
Record
{}
(values: Record) => void
/
string | JSX.Element
/
string
/
JSX.Element
/


Props list



title

Type
Default
string
/


Form title



fields

Type
Default
Record
{}


Form fields object. Every key is the field unique ID, and will be used on submit when returning their values



onSubmit

Type
Default
(values: Record) => void
/


Custom callback triggered when clicking on submit button. Gives the fields values as input parameter



submitLabel

Type
Default
string | JSX.Element
/


Custom submit button label



fieldClassName

Type
Default
string
/


Custom classname applied on every field



children

Type
Default
JSX.Element
/


Form content