UNPKG

mui-component

Version:

some custom mui components

28 lines (27 loc) 886 B
import type { ReactNode, PropsWithChildren } from 'react'; import type { CardProps, SxProps } from '@mui/material'; export interface PageContainerProps extends Omit<CardProps, 'title' | 'content'> { /** 显示边框? * @default true */ border?: boolean; boxShadow?: boolean; /** 用CardContent包裹children内容? * @default true */ content?: boolean; contentClass?: string; contentSx?: SxProps; darkTitle?: boolean; secondary?: ReactNode; shadow?: string; sx?: SxProps; title?: ReactNode; /** 传递给CardHeader,即title的外层的sx */ headerSx?: SxProps; /** 显示分割线 * @default true */ divider?: boolean; } export declare const PageContainer: import("react").ForwardRefExoticComponent<Omit<PropsWithChildren<PageContainerProps>, "ref"> & import("react").RefAttributes<any>>;