1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { ListSubheaderClasses } from './listSubheaderClasses';
|
6 |
|
7 | export interface ListSubheaderOwnProps {
|
8 | |
9 |
|
10 |
|
11 | children?: React.ReactNode;
|
12 | |
13 |
|
14 |
|
15 | classes?: Partial<ListSubheaderClasses>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 | color?: 'default' | 'primary' | 'inherit';
|
21 | |
22 |
|
23 |
|
24 |
|
25 | disableGutters?: boolean;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | disableSticky?: boolean;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | inset?: boolean;
|
36 | |
37 |
|
38 |
|
39 | sx?: SxProps<Theme>;
|
40 | }
|
41 |
|
42 | export interface ListSubheaderTypeMap<
|
43 | AdditionalProps = {},
|
44 | RootComponent extends React.ElementType = 'li',
|
45 | > {
|
46 | props: AdditionalProps & ListSubheaderOwnProps;
|
47 | defaultComponent: RootComponent;
|
48 | }
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | declare const ListSubheader: OverridableComponent<ListSubheaderTypeMap>;
|
61 |
|
62 | export type ListSubheaderProps<
|
63 | RootComponent extends React.ElementType = ListSubheaderTypeMap['defaultComponent'],
|
64 | AdditionalProps = {},
|
65 | > = OverrideProps<ListSubheaderTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
66 | component?: React.ElementType;
|
67 | };
|
68 |
|
69 | export default ListSubheader;
|