UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

46 lines (45 loc) 1.27 kB
/// <reference types="react" /> import React, { Component } from 'react'; import Grid from './Grid'; import Meta from './Meta'; export declare type CardType = 'inner'; export interface CardTabListType { key: string; tab: React.ReactNode; } export interface CardProps { prefixCls?: string; title?: React.ReactNode; extra?: React.ReactNode; bordered?: boolean; bodyStyle?: React.CSSProperties; style?: React.CSSProperties; loading?: boolean; noHovering?: boolean; children?: React.ReactNode; id?: string; className?: string; type?: CardType; cover?: React.ReactNode; actions?: Array<React.ReactNode>; tabList?: CardTabListType[]; onTabChange?: (key: string) => void; } export default class Card extends Component<CardProps, {}> { static Grid: typeof Grid; static Meta: typeof Meta; container: HTMLDivElement; resizeEvent: any; updateWiderPaddingCalled: boolean; state: { widerPadding: boolean; }; componentDidMount(): void; componentWillUnmount(): void; updateWiderPadding(): void; onTabChange: (key: any) => void; saveRef: (node: HTMLDivElement) => void; isContainGrid(): any; getAction(actions: any): any; render(): JSX.Element; }