UNPKG

@ant-design/x

Version:

Craft AI-driven interfaces effortlessly

24 lines (23 loc) 945 B
import { type ButtonProps } from 'antd'; import React from 'react'; export interface ActionButtonContextProps { prefixCls: string; onSend?: VoidFunction; onSendDisabled?: boolean; onClear?: VoidFunction; onClearDisabled?: boolean; onCancel?: VoidFunction; onCancelDisabled?: boolean; onSpeech?: VoidFunction; onSpeechDisabled?: boolean; speechRecording?: boolean; disabled?: boolean; setSubmitDisabled?: (disabled: boolean) => void; } export declare const ActionButtonContext: React.Context<ActionButtonContextProps>; export interface ActionButtonProps extends ButtonProps { action: 'onSend' | 'onClear' | 'onCancel' | 'onSpeech'; } export declare function ActionButton(props: ActionButtonProps, ref: React.Ref<HTMLButtonElement>): React.JSX.Element; declare const _default: React.ForwardRefExoticComponent<ActionButtonProps & React.RefAttributes<HTMLButtonElement>>; export default _default;