UNPKG

chakra-paginated-table

Version:

**Chakra Paginated Table** is a customizable and feature-rich table component built with Chakra UI, inspired by the pagination functionality of Ant Design (antd). It allows you to easily render a paginated table by providing data and column configurations

9 lines (8 loc) 586 B
/// <reference types="react" /> import { TableType } from "./definitions"; /**@description - Renders a chakra table with features such as pagination * and dynamic data input. * @example <PaginatedTable<Record<string,string> dataSource={[]} columns={[]} rowKey={(record)=>record.id} /> */ declare function PaginatedTable<T>({ dataSource, columns, rowKey, pagination, containerProps, TBodyProps: tBodyProps, THeadProps: tHeadProps, TableProps: tableProps, TrProps: TrProps, ThProps, }: TableType<T extends Record<string, any> ? T : never>): JSX.Element; export default PaginatedTable;