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