UNPKG

@matthew.ngo/react-form-kit

Version:

Form Kit for React. It consists of a set of components that can be used to create complex forms in a simple and declarative way.

5 lines (4 loc) 280 B
export declare const useListData: <T>(items: T[], sortBy?: string | ((a: T, b: T) => number), filterBy?: (item: T) => boolean, groupBy?: string | ((item: T) => string), sortDirection?: "asc" | "desc") => { processedItems: T[]; groupedItems: Record<string, T[]> | null; };