UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

18 lines (17 loc) 599 B
import React from 'react'; import { PopoverProps, PopoverRef } from './popover'; export declare type Action = { text: React.ReactNode; icon?: React.ReactNode; disabled?: boolean; key?: string | number; onClick?: () => void; }; export declare type PopoverMenuProps = Omit<PopoverProps, 'content'> & { actions: Action[]; onAction?: (item: Action) => void; }; export declare const PopoverMenu: React.ForwardRefExoticComponent<Omit<PopoverProps, "content"> & { actions: Action[]; onAction?: ((item: Action) => void) | undefined; } & React.RefAttributes<PopoverRef>>;