UNPKG

1.35 kBTypeScriptView Raw
1import * as React from 'react';
2import { SxProps } from '@mui/system';
3import { Theme } from '..';
4import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5import { TableFooterClasses } from './tableFooterClasses';
6
7export interface TableFooterOwnProps {
8 /**
9 * The content of the component, normally `TableRow`.
10 */
11 children?: React.ReactNode;
12 /**
13 * Override or extend the styles applied to the component.
14 */
15 classes?: Partial<TableFooterClasses>;
16 /**
17 * The system prop that allows defining system overrides as well as additional CSS styles.
18 */
19 sx?: SxProps<Theme>;
20}
21
22export interface TableFooterTypeMap<
23 AdditionalProps = {},
24 RootComponent extends React.ElementType = 'tfoot',
25> {
26 props: AdditionalProps & TableFooterOwnProps;
27 defaultComponent: RootComponent;
28}
29/**
30 *
31 * Demos:
32 *
33 * - [Table](https://mui.com/material-ui/react-table/)
34 *
35 * API:
36 *
37 * - [TableFooter API](https://mui.com/material-ui/api/table-footer/)
38 */
39declare const TableFooter: OverridableComponent<TableFooterTypeMap>;
40
41export type TableFooterProps<
42 RootComponent extends React.ElementType = TableFooterTypeMap['defaultComponent'],
43 AdditionalProps = {},
44> = OverrideProps<TableFooterTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
45 component?: React.ElementType;
46};
47
48export default TableFooter;