UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

27 lines (26 loc) 1.06 kB
import * as React from 'react'; import { AbstractTooltipProps } from '../tooltip'; import { LegacyButtonType, ButtonProps } from '../button/button'; import { RenderFunction } from '../_util/getRenderPropValue'; export interface PopconfirmProps extends AbstractTooltipProps { title: React.ReactNode | RenderFunction; disabled?: boolean; onConfirm?: (e?: React.MouseEvent<HTMLElement>) => void; onCancel?: (e?: React.MouseEvent<HTMLElement>) => void; okText?: React.ReactNode; okType?: LegacyButtonType; cancelText?: React.ReactNode; okButtonProps?: ButtonProps; cancelButtonProps?: ButtonProps; icon?: React.ReactNode; onVisibleChange?: (visible: boolean, e?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLDivElement>) => void; } export interface PopconfirmState { visible?: boolean; } export interface PopconfirmLocale { okText: string; cancelText: string; } declare const Popconfirm: React.ForwardRefExoticComponent<PopconfirmProps & React.RefAttributes<unknown>>; export default Popconfirm;