diff --git a/src/components/list-field/ListField.tsx b/src/components/list-field/ListField.tsx index 692b156..e3121c1 100644 --- a/src/components/list-field/ListField.tsx +++ b/src/components/list-field/ListField.tsx @@ -39,7 +39,14 @@ type RenderProps = Partial< export type ListItemRenderProps = RenderProp< { atom: PrimitiveAtom; + /** + * The index of the current item. + */ index: number; + /** + * Total count of items in the list. + */ + count: number; fields: Fields; add: (before?: PrimitiveAtom) => void; remove: (field: FieldAtom | FormFields) => void;