reablocks
Version:
Component library for React
38 lines (36 loc) • 975 B
TypeScript
import { CardTheme } from './CardTheme';
import { default as React, LegacyRef, FC, PropsWithChildren } from 'react';
export interface CardProps extends React.DOMAttributes<any> {
/**
* Disable the padding of the card.
*/
disablePadding?: boolean;
/**
* Additional classname to apply to the card.
*/
className?: string;
/**
* Header classname to apply.
*/
headerClassName?: string;
/**
* Content classname to apply.
*/
contentClassName?: string;
/**
* Additional style attributes. Recommend to use css classes over this.
*/
style?: React.CSSProperties;
/**
* Header element or text to show.
*/
header?: string | React.JSX.Element | React.JSX.Element[];
/**
* Theme for the Card.
*/
theme?: CardTheme;
}
export type CardRefProps = CardProps & PropsWithChildren & {
ref?: LegacyRef<HTMLDivElement>;
};
export declare const Card: FC<CardRefProps>;