Documentation
Preparing search index...
The search index is not available
Mobx Zod Form
Mobx Zod Form
@monoid-dev/mobx-zod-form
MobxZodFormOptions
Interface MobxZodFormOptions<T>
interface
MobxZodFormOptions
<
T
>
{
id
?:
string
;
initialOutput
?:
TypeOf
<
T
>
;
plugins
?:
MobxZodPlugin
[]
;
setActionOptions
?:
InputSetActionOptions
;
shouldFocusError
?:
false
|
"first-y"
|
"first-x"
;
validateOnMount
?:
boolean
;
}
Type Parameters
T
extends
MobxZodTypes
Index
Properties
id?
initial
Output?
plugins?
set
Action
Options?
should
Focus
Error?
validate
On
Mount?
Properties
Optional
id
id
?:
string
Optional
initial
Output
initial
Output
?:
TypeOf
<
T
>
Optional
plugins
plugins
?:
MobxZodPlugin
[]
Optional
set
Action
Options
set
Action
Options
?:
InputSetActionOptions
Optional
should
Focus
Error
should
Focus
Error
?:
false
|
"first-y"
|
"first-x"
Should we focus the element with error after submitting?
false: do not focus at all.
"first-y": focus on the element having the smallest
y
, then
x
. Useful when your layout is a single column.
"first-x": focus on the element having the smallest
x
, then
y
. Useful when you expect your user complete the form column by column.
Optional
validate
On
Mount
validate
On
Mount
?:
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
id
initial
Output
plugins
set
Action
Options
should
Focus
Error
validate
On
Mount
Mobx Zod Form
Loading...
Should we focus the element with error after submitting?
y
, thenx
. Useful when your layout is a single column.x
, theny
. Useful when you expect your user complete the form column by column.