UNPKG

984 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { OverridableComponent, OverrideProps } from '../OverridableComponent';
4
5export interface ListSubheaderTypeMap<P = {}, D extends React.ElementType = 'li'> {
6 props: P & {
7 color?: 'default' | 'primary' | 'inherit';
8 disableGutters?: boolean;
9 disableSticky?: boolean;
10 inset?: boolean;
11 };
12 defaultComponent: D;
13 classKey: ListSubheaderClassKey;
14}
15
16/**
17 *
18 * Demos:
19 *
20 * - [Lists](https://mui.com/components/lists/)
21 *
22 * API:
23 *
24 * - [ListSubheader API](https://mui.com/api/list-subheader/)
25 */
26declare const ListSubheader: OverridableComponent<ListSubheaderTypeMap>;
27
28export type ListSubheaderClassKey =
29 | 'root'
30 | 'colorPrimary'
31 | 'colorInherit'
32 | 'inset'
33 | 'sticky'
34 | 'gutters';
35
36export type ListSubheaderProps<
37 D extends React.ElementType = ListSubheaderTypeMap['defaultComponent'],
38 P = {}
39> = OverrideProps<ListSubheaderTypeMap<P, D>, D>;
40
41export default ListSubheader;