UNPKG

mui-component

Version:

some custom mui components

13 lines (12 loc) 597 B
import { type ReactNode, type PropsWithChildren } from "react"; import type { PopoverProps as MuiPopoverProps } from "@mui/material"; export interface PopoverProps extends Omit<MuiPopoverProps, "onClose" | "content" | "open"> { /** 触发弹出的操作,鼠标悬停或点击 */ triggerType?: "hover" | "click"; disabled?: boolean; trigger: ReactNode; content?: ReactNode; onClose?: () => void; open?: boolean; } export declare const Popover: import("react").ForwardRefExoticComponent<Omit<PropsWithChildren<PopoverProps>, "ref"> & import("react").RefAttributes<any>>;