UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

54 lines (50 loc) 1.45 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: * * - [Tables](https://mui.com/components/tables/) * * API: * * - [TableRow API](https://mui.com/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;