UNPKG

@mui/material

Version:

React components that implement Google's Material Design.

54 lines (50 loc) 1.46 kB
import * as React from 'react'; import { SxProps } from '@mui/system'; import { Theme } from '..'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; import { TableRowClasses } from './tableRowClasses'; export interface TableRowTypeMap<P = {}, D extends React.ElementType = 'tr'> { props: P & { /** * Should be valid <tr> children such as `TableCell`. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial<TableRowClasses>; /** * If `true`, the table row will shade on hover. * @default false */ hover?: boolean; /** * If `true`, the table row will have the selected shading. * @default false */ selected?: boolean; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; }; defaultComponent: D; } /** * Will automatically set dynamic row height * based on the material table element parent (head, body, etc). * * Demos: * * - [Table](https://mui.com/material-ui/react-table/) * * API: * * - [TableRow API](https://mui.com/material-ui/api/table-row/) */ declare const TableRow: OverridableComponent<TableRowTypeMap>; export type TableRowProps< D extends React.ElementType = TableRowTypeMap['defaultComponent'], P = {}, > = OverrideProps<TableRowTypeMap<P, D>, D>; export default TableRow;