UNPKG

retro-react

Version:

A React component library for building retro-style websites

41 lines (40 loc) 973 B
/// <reference types="react" /> import { ThemeUICSSObject } from 'theme-ui'; export interface CardProps extends React.HTMLAttributes<HTMLDivElement> { /** * The header of the Card. * * @default undefined * */ header?: React.ReactNode; /** * The image of the Card. * * @default undefined */ image?: string; /** * The alt text of the Card image. * * @default '' */ alt?: string; /** * The footer of the Card. * * @default undefined */ footer?: React.ReactNode; sx?: ThemeUICSSObject; } /** * Cards serve as a container for rich content, such as images and text. * * @example * <Card header="Hello World" image="getImageUrl()" footer="Goodbye World"> * Content * </Card> * */ export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;