UNPKG

@dodobrat/react-ui-kit

Version:
14 lines (13 loc) 953 B
import React from "react"; import { CardProps } from "./Card.types"; import { CardHeaderSubComponentProps, CardImageSubComponentProps, CardLoaderSubComponentProps } from "./CardSubcomponents.types"; import { CnCh } from "../../helpers/global.types"; export interface CardComponent extends React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>> { Loader: React.ForwardRefExoticComponent<CardLoaderSubComponentProps & React.RefAttributes<HTMLDivElement>>; Image: React.ForwardRefExoticComponent<CardImageSubComponentProps & React.RefAttributes<HTMLDivElement>>; Header: React.ForwardRefExoticComponent<CardHeaderSubComponentProps & React.RefAttributes<HTMLDivElement>>; Body: React.ForwardRefExoticComponent<CnCh & React.RefAttributes<HTMLDivElement>>; Footer: React.ForwardRefExoticComponent<CnCh & React.RefAttributes<HTMLDivElement>>; } declare const Card: CardComponent; export default Card;