1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { TableHeadClasses } from './tableHeadClasses';
|
6 |
|
7 | export interface TableHeadOwnProps {
|
8 | |
9 |
|
10 |
|
11 | children?: React.ReactNode;
|
12 | |
13 |
|
14 |
|
15 | classes?: Partial<TableHeadClasses>;
|
16 | |
17 |
|
18 |
|
19 | sx?: SxProps<Theme>;
|
20 | }
|
21 |
|
22 | export interface TableHeadTypeMap<
|
23 | AdditionalProps = {},
|
24 | RootComponent extends React.ElementType = 'thead',
|
25 | > {
|
26 | props: AdditionalProps & TableHeadOwnProps;
|
27 | defaultComponent: RootComponent;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | declare const TableHead: OverridableComponent<TableHeadTypeMap>;
|
40 |
|
41 | export type TableHeadProps<
|
42 | RootComponent extends React.ElementType = TableHeadTypeMap['defaultComponent'],
|
43 | AdditionalProps = {},
|
44 | > = OverrideProps<TableHeadTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
45 | component?: React.ElementType;
|
46 | };
|
47 |
|
48 | export default TableHead;
|