20 lines
613 B
TypeScript
20 lines
613 B
TypeScript
import * as React from 'react';
|
|
import type { ButtonProps, LegacyButtonType } from '../button/button';
|
|
export interface ActionButtonProps {
|
|
type?: LegacyButtonType;
|
|
actionFn?: (...args: any[]) => any | PromiseLike<any>;
|
|
close?: (...args: any[]) => void;
|
|
autoFocus?: boolean;
|
|
prefixCls: string;
|
|
buttonProps?: ButtonProps;
|
|
emitEvent?: boolean;
|
|
quitOnNullishReturnValue?: boolean;
|
|
children?: React.ReactNode;
|
|
/**
|
|
* Do not throw if is await mode
|
|
*/
|
|
isSilent?: () => boolean;
|
|
}
|
|
declare const ActionButton: React.FC<ActionButtonProps>;
|
|
export default ActionButton;
|