Skip to content

Commit

Permalink
fix(ListItem): document the count child prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Dec 1, 2023
1 parent 4c6ea16 commit 43297e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/list-field/ListField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ type RenderProps = Partial<
export type ListItemRenderProps<Fields> = RenderProp<
{
atom: PrimitiveAtom<Fields>;
/**
* The index of the current item.
*/
index: number;
/**
* Total count of items in the list.
*/
count: number;
fields: Fields;
add: (before?: PrimitiveAtom<Fields>) => void;
remove: (field: FieldAtom<any> | FormFields) => void;
Expand Down

0 comments on commit 43297e4

Please sign in to comment.