@material-ui/core
Version:
React components that implement Google's Material Design.
43 lines (38 loc) • 1.15 kB
TypeScript
import * as React from 'react';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
export interface TableRowTypeMap<P = {}, D extends React.ElementType = 'tr'> {
props: P & {
/**
* Should be valid <tr> children such as `TableCell`.
*/
children?: React.ReactNode;
/**
* If `true`, the table row will shade on hover.
*/
hover?: boolean;
/**
* If `true`, the table row will have the selected shading.
*/
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://material-ui.com/components/tables/)
*
* API:
*
* - [TableRow API](https://material-ui.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;