UNPKG

mui-component

Version:

some custom mui components

31 lines (30 loc) 1.34 kB
import type { ReactNode, Dispatch, SetStateAction, PropsWithChildren } from "react"; import type { CardProps, SxProps, TypographyProps, DividerProps } from "@mui/material"; import { ExpandCircleDownOutlined as ExpandCircleDownOutlinedIcon } from "@mui/icons-material"; export interface ContentCardProps extends Omit<CardProps, "title" | "content"> { content?: boolean; contentClass?: string; darkTitle?: boolean; secondary?: ReactNode; sx?: SxProps; title?: ReactNode; /** 传递给标题Typography的props */ titleProps?: TypographyProps; defaultCollapsed?: boolean; collapsible?: boolean; /** 受控属性 ,与setCollapsed配合使用*/ collapsed?: boolean; /** 受控属性 ,与collapsed配合使用*/ setCollapsed?: Dispatch<SetStateAction<boolean>>; headerSx?: SxProps; contentSx?: SxProps; iconColor?: "primary" | "secondary" | "error" | "info" | "success" | "warning" | "inherit" | "action" | "disabled"; CollapseIcon?: typeof ExpandCircleDownOutlinedIcon; unmountOnExit?: boolean; dividerProps?: DividerProps; /** 显示分割线 * @default true */ divider?: boolean; } export declare const ContentCard: import("react").ForwardRefExoticComponent<Omit<PropsWithChildren<ContentCardProps>, "ref"> & import("react").RefAttributes<any>>;