@lynxts/core • Docs
@lynxts/core / ArrayFieldProps
The props of the ArrayField component.
• T extends Struct
struct type of the form values
• K extends Path
<T
, unknown
[]>
the path type of the array field
children: (
props
) =>ReactNode
• props: UseArrayField
<ArrayValue
<T
, K
>>
render props same as the useArrayField
hook result
ReactNode
a React.js node
components/ArrayField.component.tsx:42
optional
deps:DependencyList
The children render result is memoized in this component and it will only change if the array field value changes. This prop lets you add an additional dependency list to that memoization, so you can add external state changes when required.
components/ArrayField.component.tsx:49
name:
K
The path to the array field in T
.