UNPKG

react-table-ui

Version:

Out-of-the-box UI for React-Table 7.

16 lines (15 loc) 582 B
import type { ReactNode } from 'react'; export interface DataType extends Record<string, any> { /** Select data-row by default. */ isSelected?: boolean; /** Always expanded data-row, regardless of state. */ expanded?: boolean; /** Sub rows visible when expanded. */ subRows?: DataType[]; /** Custom component shown when row is expanded. * @category Custom Component */ subComponent?: ReactNode; } /** Type for Callback to handle state changes. */ export declare type StateChangeHandler<State> = (state: State) => void; export default DataType;