@lynxts/core • Docs
@lynxts/core / FieldProps
The props of the ArrayField component.
• T extends Struct
struct type of the form values
• K extends Path
<T
, ValueByPath
<T
, K
>>
the path type of the field
• D extends Optional
<ValueByPath
<T
, K
>>
the default type to use in case of fallback
children: (
props
) =>ReactNode
• props: FieldRenderProps
<T
, K
, D
>
the render props same as useField
result
ReactNode
a React.js node
components/Field.component.tsx:54
optional
deps:DependencyList
The children render result is memoized in this component and it will only change if the field value or its validation props changes. This prop lets you add an additional dependency list to that memoization, so you can add external state changes when required.
components/Field.component.tsx:61
optional
fallback:D
optional default value the field should take
components/Field.component.tsx:65
path:
K
the path of the field in T