ArrayField
Iterates an array-valued field, exposing each item to its children.
Installation
pnpm dlx shadcn@latest add @chelone/array-fieldIterates an array-valued field, exposing each item to its children.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The list-rendering children (a `DataTable`, etc.). |
| defaultValue | unknown | — | Returned when the resolved value is `undefined`. |
| filter | FilterPayload | — | Client-side filter for the embedded list. |
| perPage | number | — | Client-side page size for the embedded list. |
| record | RecordType | — | The record to read. Defaults to the ambient `RecordContext` value. |
| resource | string | — | The resource name published on the list context. |
| sort | SortPayload | — | Client-side sort for the embedded list. |
| source | string | — | The field path to the array on the current record. |