1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { CardMediaClasses } from './cardMediaClasses';
|
6 |
|
7 | export interface CardMediaOwnProps {
|
8 | |
9 |
|
10 |
|
11 | children?: React.ReactNode;
|
12 | |
13 |
|
14 |
|
15 | classes?: Partial<CardMediaClasses>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 | image?: string;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 | src?: string;
|
28 | |
29 |
|
30 |
|
31 | sx?: SxProps<Theme>;
|
32 | }
|
33 |
|
34 | export interface CardMediaTypeMap<AdditionalProps, RootComponent extends React.ElementType> {
|
35 | props: AdditionalProps & CardMediaOwnProps;
|
36 | defaultComponent: RootComponent;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | declare const CardMedia: OverridableComponent<CardMediaTypeMap<{}, 'div'>>;
|
50 |
|
51 | export type CardMediaProps<
|
52 | RootComponent extends React.ElementType = 'div',
|
53 | AdditionalProps = {},
|
54 | > = OverrideProps<CardMediaTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
55 | component?: React.ElementType;
|
56 | };
|
57 |
|
58 | export default CardMedia;
|