UNPKG

761 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { TypographyProps } from '../Typography';
4
5export interface CardHeaderProps
6 extends StandardProps<React.HTMLAttributes<HTMLDivElement>, CardHeaderClassKey, 'title'> {
7 action?: React.ReactNode;
8 avatar?: React.ReactNode;
9 component?: React.ElementType<React.HTMLAttributes<HTMLDivElement>>;
10 disableTypography?: boolean;
11 subheader?: React.ReactNode;
12 subheaderTypographyProps?: Partial<TypographyProps>;
13 title?: React.ReactNode;
14 titleTypographyProps?: Partial<TypographyProps>;
15}
16
17export type CardHeaderClassKey = 'root' | 'avatar' | 'action' | 'content' | 'title' | 'subheader';
18
19declare const CardHeader: React.ComponentType<CardHeaderProps>;
20
21export default CardHeader;