UNPKG

@material-ui/core

Version:

React components that implement Google's Material Design.

33 lines (28 loc) 881 B
import * as React from 'react'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; export interface TableRowTypeMap<P = {}, D extends React.ElementType = 'tr'> { props: P & { hover?: boolean; selected?: boolean; }; defaultComponent: D; classKey: TableRowClassKey; } /** * Will automatically set dynamic row height * based on the material table element parent (head, body, etc). * Demos: * * - [Tables](https://mui.com/components/tables/) * * API: * * - [TableRow API](https://mui.com/api/table-row/) */ declare const TableRow: OverridableComponent<TableRowTypeMap>; export type TableRowClassKey = 'root' | 'selected' | 'hover' | 'head' | 'footer'; export type TableRowProps< D extends React.ElementType = TableRowTypeMap['defaultComponent'], P = {} > = OverrideProps<TableRowTypeMap<P, D>, D>; export default TableRow;