import React from 'react'; import { ComponentExtra } from '../../types'; import { CardProps as MaterialCardProps, CardMediaProps } from '@material-ui/core'; import { CardButtonType } from './components/CardButton'; import { OnCardClick } from './components/CardContentWrapper'; export interface CardProps extends MaterialCardProps { /** * Set to true if you want to have font-sizes bigger. Useful for large cards' widths. False by default. */ big?: boolean; /** * The controls of the Card. You can either use the Card.Button component or bring your own. */ children?: React.ReactNode; /** * The Card's description. It can be some string, or some elements if you want to render a custom description. */ description?: React.ReactNode; /** * Ref forwarded to the HTML Root element. */ forwardedRef?: React.Ref; /** * The Card's image media. Inherits from MUI's CardMedia props. See https://material-ui.com/api/card-media/. */ image?: CardMediaProps; /** * Function fired when the card is pressed or clicked. If you leave it undefined, the card's content will be rendered * in a div instead of a button. */ onClick?: OnCardClick; /** * The Card's title. */ title: string; } export declare type CardComponents = { Button: CardButtonType; }; export declare type CardType = ComponentExtra; declare const CardExtra: ComponentExtra; export default CardExtra;