ruffer-pattern-portfolio
Version:
This is the end result from https://dev.to/swyx/quick-guide-to-setup-your-react--typescript-storybook-design-system-1c51
25 lines (24 loc) • 606 B
TypeScript
import { CardProps as BootstrapCardProps, CardImgProps } from 'react-bootstrap';
export interface CardHeder {
color?: string;
title: string;
subtitle?: string;
}
export interface CardImage extends CardImgProps {
src: string;
}
export interface CardBody {
color?: string;
text: string;
}
export interface CardProps extends BootstrapCardProps {
loading?: boolean;
header: CardHeder;
image?: CardImage;
content?: CardBody;
link?: string;
className?: string;
backgroundColor?: string;
children?: any;
onClick?: () => Event;
}