@confi/conflux-react-ui-test-package
Version:
Modern and minimalist React UI library.
30 lines (29 loc) • 1.09 kB
TypeScript
import React from 'react';
import { CardTypes } from '../utils/prop-types';
import CardFooter from './card-footer';
import CardContent from './card-content';
interface Props {
hoverable?: boolean;
shadow?: boolean;
className?: string;
width?: string;
type?: CardTypes;
}
declare const defaultProps: {
type: "default" | "secondary" | "success" | "warning" | "error" | "dark" | "lite" | "alert" | "purple" | "violet" | "cyan";
hoverable: boolean;
shadow: boolean;
width: string;
className: string;
};
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
export declare type CardProps = Props & typeof defaultProps & NativeAttrs;
declare type MemoCardComponent<P = {}> = React.NamedExoticComponent<P> & {
Footer: typeof CardFooter;
Actions: typeof CardFooter;
Content: typeof CardContent;
Body: typeof CardContent;
};
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs;
declare const _default: MemoCardComponent<ComponentProps>;
export default _default;