Skip to main content

ChatInlinePluginProps

Agent Runtimes


Agent Runtimes / lexical/ChatInlinePlugin / ChatInlinePluginProps

Interface: ChatInlinePluginProps

Defined in: lexical/ChatInlinePlugin.tsx:221

Props for ChatInlinePlugin

Properties

isOpen

isOpen: boolean

Defined in: lexical/ChatInlinePlugin.tsx:225

Whether the AI chat panel is open (controlled by useChatInlineToolbarItems)


onClose

onClose: () => void

Defined in: lexical/ChatInlinePlugin.tsx:227

Callback to close the AI chat panel

Returns

void


onPendingPromptConsumed?

optional onPendingPromptConsumed?: () => void

Defined in: lexical/ChatInlinePlugin.tsx:231

Callback after the pending prompt has been consumed

Returns

void


pendingPrompt?

optional pendingPrompt?: string | null

Defined in: lexical/ChatInlinePlugin.tsx:229

A pending prompt to submit automatically (from toolbar dropdown action)


portalContainer?

optional portalContainer?: HTMLElement

Defined in: lexical/ChatInlinePlugin.tsx:233

Optional: Container element for the portal (defaults to document.body)


protocol

protocol: ChatInlineProtocolConfig

Defined in: lexical/ChatInlinePlugin.tsx:223

Protocol configuration for the AI agent