AIPromptProps
Props of the AIPrompt component.
Definition
Package:@progress/kendo-react-conversational-ui
Properties
activeView
string
Sets the name of the activeView property:
<AIPrompt activeView="promptView" />
children?
ReactNode
Custom content rendered inside the component.
<AIPrompt>
<div>Custom content</div>
</AIPrompt>
dir?
string
Text direction of the component.
<AIPrompt dir="rtl" />
loading?
boolean
Indicates loading state of the prompt.
<AIPrompt loading={true} />
onActiveViewChange?
(name: string) => void
Fires when the active view changes. Provides the new view name.
<AIPrompt onActiveViewChange={(name) => console.log('Active view changed to:', name)} />
onCancel?
() => void
Fires when the prompt is canceled.
<AIPrompt onCancel={() => console.log('Prompt cancelled')} />
onCommandExecute?
(command: CommandInterface) => void
Fires when a command is executed.
<AIPrompt onCommandExecute={(command) => console.log('Command executed:', command)} />
onPromptRequest?
(prompt: string, outputItem: AIPromptOutputInterface) => void
Fires when a prompt is requested. Provides the prompt and optional target output.
<AIPrompt onPromptRequest={(prompt) => console.log('Prompt requested:', prompt)} />
promptPlaceholder?
string
Placeholder text for the prompt input.
<AIPrompt promptPlaceholder="Type your prompt here..." />
streaming?
boolean
Indicates streaming state of the prompt.
<AIPrompt streaming={true} />
style?
CSSProperties
Inline styles for the root element.
<AIPrompt style={{ backgroundColor: 'lightblue' }} />
Optionally specifies the rendering for the suggestions displayed in the AI Prompt component.
toolbarItems?
AIPromptToolbarItemInterface | ReactNode[]
Items rendered in the toolbar.
The items rendered in the toolbar. the toolbarItems property:
<AIPrompt toolbarItems={[<CustomToolbarItem />]} />
webMcp?
boolean | WebMcpProps
Enables Web MCP tool registration for this component.
Requires a parent WebMcpProvider from @progress/kendo-react-webmcp.