GridAIPromptProps
Props for the GridAIPrompt
component, which provides AI-powered prompt and output functionality in a grid toolbar.
<GridAIPrompt
promptValue="Summarize this data"
outputs={[{ text: "Summary...", ... }]}
streaming={true}
onPromptRequest={handlePrompt}
suggestionsList={["Summarize", "Explain", "Generate chart"]}
/>
Name | Type | Default | Description |
---|---|---|---|
activeView? |
|
Name of the currently active view. ts
| |
generateButton? |
|
Custom component to render the generate button. ts
| |
onActiveViewChange? |
|
Callback fired when the active view changes. ts
| |
onCancel? |
|
Callback fired when the user cancels the current operation. ts
| |
onClose? |
|
Callback fired when the user closes the current operation. ts
| |
onCopy? |
|
Callback fired when the user clicks the Copy button in the output card. ts
| |
onOutputRating? |
|
Callback fired when the user rates the output. ts
| |
onPromptRequest? |
|
Callback fired when the user submits a prompt request. ts
| |
outputCard? |
|
Configuration for the output card displaying AI results. ts
| |
outputs? |
|
List of AI-generated outputs to display. ts
| |
promptInput? |
|
Custom component to render the prompt input field. ts
| |
promptPlaceHolder? |
|
Placeholder text for the prompt input field. ts
| |
promptValue? |
|
Current value of the prompt input field. ts
| |
streaming? |
|
Indicates whether the prompt is currently streaming or processing. ts
| |
suggestionsList? |
|
List of prompt suggestions to display to the user. ts
| |
toolbarItems? |
|
Array of toolbar items to display, can include prompt or output view defaults. ts
|