ArrayField

Iterates an array-valued field, exposing each item to its children.

Installation

pnpm dlx shadcn@latest add @chelone/array-field
Loading preview…

Iterates an array-valued field, exposing each item to its children.

Props

PropTypeDefaultDescription
childrenReactNode—The list-rendering children (a `DataTable`, etc.).
defaultValueSourceValue<RecordType, SourceProp<RecordType>>—Returned when the resolved value is `undefined`.
filterFilterPayload—Client-side filter for the embedded list.
perPagenumber—Client-side page size for the embedded list.
recordRecordType—The record to read. Defaults to the ambient `RecordContext` value.
resourcestring—The resource name published on the list context.
sortSortPayload—Client-side sort for the embedded list.
sourceSourceProp<RecordType>—The field path to the array on the current record.