@grandlinex/react-components
Version:
37 lines (36 loc) • 1.06 kB
TypeScript
import React, { ReactNode } from 'react';
import { INames } from '@grandlinex/react-icons';
import { BadgeProps } from '../other/Badge/Badge';
import { MenuItem } from '../menu/DropDownIconMenu';
import { ToolTipProp } from '../tooltip/Tooltip';
export type CardColor = 'red' | 'black' | 'yellow' | 'green' | 'orange';
export type CardIconType = {
icon: INames | ReactNode;
onClick: () => void;
key?: string;
tooltip?: ToolTipProp;
};
export type CardProps = {
style?: React.CSSProperties;
className?: string;
title?: string | ReactNode;
imgUrl?: string;
imgBase?: string;
date?: string;
iconCover?: boolean;
noIcon?: boolean;
skeleton?: boolean;
order?: number;
badges?: BadgeProps[];
color?: CardColor;
icon?: INames | ReactNode;
button?: {
onClick: () => void;
content: ReactNode | string;
};
hoverButton?: CardIconType[];
children?: React.ReactNode;
menu?: MenuItem[];
};
declare const Card: (props: CardProps) => React.JSX.Element;
export { Card };