@papernote/ui
Version:
A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive
14 lines • 593 B
TypeScript
import React from 'react';
export interface FieldArrayProps<T> {
name?: string;
initialValues?: T[];
renderField: (value: T, index: number, onChange: (value: T) => void) => React.ReactNode;
onChange?: (values: T[]) => void;
addButtonLabel?: string;
min?: number;
max?: number;
allowReorder?: boolean;
className?: string;
}
export default function FieldArray<T>({ initialValues, renderField, onChange, addButtonLabel, min, max, allowReorder, className, }: FieldArrayProps<T>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=FieldArray.d.ts.map