@quanxi/ui
Version:
全悉组件库
29 lines (28 loc) • 895 B
TypeScript
import React, { CSSProperties } from "react";
import "./style.scss";
export type ExpandIconPosition = "bottomRight" | "topLeft" | "topRight";
export type CardProps = {
style?: CSSProperties;
size?: "default" | "small";
cardType?: "outer" | "inner";
hasHr?: boolean;
className?: string;
children?: React.ReactNode;
avatar?: React.ReactNode;
title?: React.ReactNode | string;
secTitle?: React.ReactNode | string;
extra?: React.ReactNode;
bordered?: boolean;
cover?: React.ReactNode;
shadows?: boolean;
footer?: Array<React.ReactNode>;
collapsible?: boolean;
defaultCollapse?: boolean;
expandIconPosition?: ExpandIconPosition;
expandIcon?: (options: {
isActive: boolean;
}) => React.ReactNode;
onChange?: (isOpen: boolean) => void;
};
declare function Card(props: CardProps): JSX.Element;
export default Card;