UNPKG

@cainiaofe/cn-ui-m

Version:
33 lines (32 loc) 740 B
import React from 'react'; import { Placement } from '@floating-ui/dom'; import type { CnModalFloatingUIRef } from './types'; interface Props { /** * 是否可见 */ visible?: boolean; floatingContent: string | React.ReactNode; /** * floating UI的模式 */ floatingMode?: 'light' | 'dark'; /** * 自定义容器 */ container?: HTMLElement; /** * 摆放的位置 */ placement?: Placement; /** * 自定义类名 */ className?: string; /** * 点击外部回调 */ clickAwayCallback?: () => void; } export declare const CnPopoverModal: React.ForwardRefExoticComponent<Props & React.RefAttributes<CnModalFloatingUIRef>>; export {};