UNPKG

@edancerys/ts-react-components-lib

Version:
47 lines (46 loc) 1.26 kB
import React, { MouseEvent } from 'react'; import { StringProps } from './String'; import { ButtonProps } from './Button'; export interface CardProps { title?: StringProps[]; body?: StringProps[]; node?: NodeProps[]; button?: ButtonProps[]; titleConfig?: NodeConfigProps; bodyConfig?: NodeConfigProps; nodeConfig?: NodeConfigProps; buttonConfig?: NodeConfigProps; childrenConfig?: NodeConfigProps; border?: string; borderBottom?: string; borderTop?: string; borderLeft?: string; borderRight?: string; borderRadius?: string; backgroundColor?: string; padding?: string; margin?: string; boxShadow?: string; height?: string; maxWidth?: string; minWidth?: string; className?: string; children?: React.ReactNode; onClick?: (event?: MouseEvent) => void; } export interface NodeProps { node?: React.ReactNode; width?: string; } export interface NodeConfigProps { gap?: string; order?: number; width?: string; maxWidth?: string; margin?: string; backgroundColor?: string; padding?: string; border?: string; borderRadius?: string; } export declare const Card: React.FC<CardProps>;