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? |
|
Collection of commands rendered in the context menu. If not set, default AI text editing commands are used. | |
enableSpeechToText? |
|
|
Shows speech-to-text button in the input. When |
generateButton? |
|
Custom component 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 executes. Provides the selected command and current prompt value. | |
onCopy? |
|
Fires when the user clicks the Copy button. | |
onDiscard? |
|
Fires when the user clicks the Discard button. | |
onOpen? |
|
Fires when the popup is opened. | |
onOutputAction? |
|
Fires when an action command executes.
Built-in | |
onPromptCancel? |
|
Fires when the cancel action occurs. | |
onPromptRequest? |
|
Fires when the user submits a prompt. | |
outputActions? |
|
Collection of output actions rendered in the card actions.
If not set, default actions ( | |
outputCard? |
|
Template that lets you define custom Card fields for header, body, and actions. Overrides defaults. | |
outputs? |
|
Collection of outputs to display as cards. | |
popupOptions? |
|
Object which passes props directly to the Popup component. | |
promptInput? |
|
Custom component used to render the prompt input. | |
promptPlaceholder? |
|
Placeholder text for the prompt input. | |
promptValue? |
|
Initial value of the prompt input. | |
show? |
|
|
Controls the visibility of the popup. |
streaming? |
|
Indicates if the content is streaming. | |
style? |
|
Inline styles for the root element. jsx
| |
width? |
|
The width of the component. |