InlineAIPromptPropsPremium
Name | Type | Default | Description |
---|---|---|---|
anchor? |
|
The element that serves as an anchor for the popup. | |
animate? |
|
|
Controls the animation of the popup. |
appendTo? |
|
The container element where the popup will be rendered. If not specified, the popup will be rendered in the document body. | |
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. | |
height? |
|
The height of the component. | |
onClose? |
|
Fires when the popup is closed. | |
onCommandExecute? |
|
Fires when a command from the context menu is executed. Exposes the selected command and current prompt value as event data. | |
onCopy? |
|
Fires each time the user clicks Copy button in the card. | |
onDiscard? |
|
Fires each time the user clicks Discard button in the card. | |
onOpen? |
|
Fires when the popup is opened. | |
onOutputAction? |
|
Fires when an action command is executed. Built-in actions (copy, discard) are handled internally by the component. All other actions are handled by this callback. | |
onPromptCancel? |
|
Specifies the callback for cancel action. | |
onPromptRequest? |
|
Callback when user submits a prompt | |
outputActions? |
|
The collection of output actions that will be rendered in the card actions. If not specified, default actions (copy, discard) will be used. You can override built-in actions. | |
outputCard? |
|
Represents a template that allows you to define custom Card fields for: header, body, actions The custom fields will override the default one. | |
outputs? |
|
The collection of outputs to display as cards | |
popupOptions? |
|
Object which passes props directly to the Popup component. | |
promptInput? |
|
Accepts a custom component that can be used to render the prompt input. | |
promptPlaceholder? |
|
Placeholder text for the prompt input | |
promptValue? |
|
The initial value of the prompt input | |
show? |
|
|
Controls the visibility of the popup. |
streaming? |
|
Specifies if the content is being streamed. | |
style? |
|
Example usage of the jsx
| |
width? |
|
The width of the component. |