InlineAIPromptInputProps
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.
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
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.
placeholder?
string
Placeholder text for the prompt input
promptInput?
CustomComponent<TextAreaProps>
Accepts a custom component that can be used to render the prompt input.
promptValue?
string
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.