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