1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { InternalStandardProps as StandardProps, Theme } from '..';
|
4 | import { TypographyProps } from '../Typography';
|
5 | import { ListItemTextClasses } from './listItemTextClasses';
|
6 |
|
7 | export interface ListItemTextProps<
|
8 | PrimaryTypographyComponent extends React.ElementType = 'span',
|
9 | SecondaryTypographyComponent extends React.ElementType = 'p',
|
10 | > extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
|
11 | |
12 |
|
13 |
|
14 | children?: React.ReactNode;
|
15 | |
16 |
|
17 |
|
18 | classes?: Partial<ListItemTextClasses>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | disableTypography?: boolean;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 | inset?: boolean;
|
33 | |
34 |
|
35 |
|
36 | primary?: React.ReactNode;
|
37 | |
38 |
|
39 |
|
40 |
|
41 | primaryTypographyProps?: TypographyProps<
|
42 | PrimaryTypographyComponent,
|
43 | { component?: PrimaryTypographyComponent }
|
44 | >;
|
45 | |
46 |
|
47 |
|
48 | secondary?: React.ReactNode;
|
49 | |
50 |
|
51 |
|
52 |
|
53 | secondaryTypographyProps?: TypographyProps<
|
54 | SecondaryTypographyComponent,
|
55 | { component?: SecondaryTypographyComponent }
|
56 | >;
|
57 | |
58 |
|
59 |
|
60 | sx?: SxProps<Theme>;
|
61 | }
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | export default function ListItemText<
|
74 | PrimaryTypographyComponent extends React.ElementType = 'span',
|
75 | SecondaryTypographyComponent extends React.ElementType = 'p',
|
76 | >(
|
77 | props: ListItemTextProps<PrimaryTypographyComponent, SecondaryTypographyComponent>,
|
78 | ): React.JSX.Element;
|