New to KendoReactStart a free 30-day trial

Definition

Package:@progress/kendo-react-conversational-ui

Properties

The collection of commands that will be rendered in the context menu. If not specified, default AI text editing commands will be used.

enableSpeechToText?

boolean | SpeechToTextButtonProps

Show speech to text button in input. When true, shows the button with default settings. When an object is provided, passes those props directly to the SpeechToTextButton component.

Default:

false

generateButton?

CustomComponent​<ButtonProps>

Accepts a custom component that can be used to render the generate button.

onMenuClick?

(event: MouseEvent​<HTMLButtonElement, MouseEvent>) => void

Callback when the menu button is clicked

Parameters:eventMouseEvent​<HTMLButtonElement, MouseEvent>

onPromptCancel?

() => void

Callback when the prompt input value is cancelled. This is typically used to stop the streaming of content.

onPromptRequest?

(value: string) => void

Callback when the prompt input value is submitted. The value is trimmed before being passed to the callback.

Parameters:valuestring

Placeholder text for the prompt input

promptInput?

CustomComponent​<TextAreaProps>

Accepts a custom component that can be used to render the prompt input.

The value of the prompt input. If not specified, the component will manage its own state.

streaming?

boolean

Specifies if the content is being streamed.