@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
15 lines (14 loc) • 505 B
TypeScript
import { Sort } from "../utils/types.js";
import { UseTableProps } from "./useTable.types.js";
import "../index.js";
//#region src/table/useTable.d.ts
/** Handles controlled/uncontrolled sort of the Table rows. */
declare function useTable(props: UseTableProps): {
isControlled: boolean;
onSortChange: (key: string) => void;
sort: Sort;
};
type UseTableReturnType = ReturnType<typeof useTable>;
//#endregion
export { UseTableReturnType, useTable as default };
//# sourceMappingURL=useTable.d.ts.map