UNPKG

803 BTypeScriptView Raw
1import * as React from 'react';
2import { OverridableComponent, OverrideProps } from '../OverridableComponent';
3
4export interface CardContentTypeMap<P = {}, D extends React.ElementType = 'div'> {
5 props: P & {
6 /**
7 * The content of the component.
8 */
9 children?: React.ReactNode;
10 };
11 defaultComponent: D;
12 classKey: CardContentClassKey;
13}
14/**
15 *
16 * Demos:
17 *
18 * - [Cards](https://mui.com/components/cards/)
19 *
20 * API:
21 *
22 * - [CardContent API](https://mui.com/api/card-content/)
23 */
24declare const CardContent: OverridableComponent<CardContentTypeMap>;
25
26export type CardContentClassKey = 'root';
27
28export type CardContentProps<
29 D extends React.ElementType = CardContentTypeMap['defaultComponent'],
30 P = {}
31> = OverrideProps<CardContentTypeMap<P, D>, D>;
32
33export default CardContent;