UNPKG

1.32 kBTypeScriptView Raw
1import * as React from 'react';
2import { SxProps } from '@mui/system';
3import { OverridableComponent, OverrideProps } from '../OverridableComponent';
4import { Theme } from '..';
5import { CardContentClasses } from './cardContentClasses';
6
7export interface CardContentOwnProps {
8 /**
9 * The content of the component.
10 */
11 children?: React.ReactNode;
12 /**
13 * Override or extend the styles applied to the component.
14 */
15 classes?: Partial<CardContentClasses>;
16 /**
17 * The system prop that allows defining system overrides as well as additional CSS styles.
18 */
19 sx?: SxProps<Theme>;
20}
21
22export interface CardContentTypeMap<
23 AdditionalProps = {},
24 RootComponent extends React.ElementType = 'div',
25> {
26 props: AdditionalProps & CardContentOwnProps;
27 defaultComponent: RootComponent;
28}
29/**
30 *
31 * Demos:
32 *
33 * - [Card](https://mui.com/material-ui/react-card/)
34 *
35 * API:
36 *
37 * - [CardContent API](https://mui.com/material-ui/api/card-content/)
38 */
39declare const CardContent: OverridableComponent<CardContentTypeMap>;
40
41export type CardContentProps<
42 RootComponent extends React.ElementType = CardContentTypeMap['defaultComponent'],
43 AdditionalProps = {},
44> = OverrideProps<CardContentTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
45 component?: React.ElementType;
46};
47
48export default CardContent;