InlineAIPromptInputPropsPremium
Name | Type | Default | Description |
---|---|---|---|
commands? |
|
The collection of commands that will be rendered in the context menu. If not specified, default AI text editing commands will be used. | |
enableSpeechToText? |
|
|
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. |
generateButton? |
|
Accepts a custom component that can be used to render the generate button. | |
onMenuClick? |
|
Callback when the menu button is clicked | |
onPromptCancel? |
|
Callback when the prompt input value is cancelled. This is typically used to stop the streaming of content. | |
onPromptRequest? |
|
Callback when the prompt input value is submitted. The value is trimmed before being passed to the callback. | |
placeholder? |
|
Placeholder text for the prompt input | |
promptInput? |
|
Accepts a custom component that can be used to render the prompt input. | |
promptValue? |
|
The value of the prompt input. If not specified, the component will manage its own state. | |
streaming? |
|
Specifies if the content is being streamed. |