ChatOptions

PropTypeDescription
enabledboolean

Show a chat-like interface. Default: true.

labelstring

Label for the chat input Default: "Ask AI".

titlestring

Title for the standalone chat view Default: "Help".

tabLabelstring

Label for the tab bar Default: "Ask AI".

placeholderstring

Placeholder for the chat input Default: "Ask AI…".

buttonLabelstring

Label for the submit button Default: "Send".

errorTextComponentType<{ error: Error }>

Component to render when an error occurs in prompt view

showCopyboolean

Show copy response button Default: true.

historyboolean

Enable chat history features

  • enable saving chat history to local storage
  • show chat history UI
  • resume chat conversations Default: true.
defaultViewDefaultViewProps

Default (empty) view

disclaimerViewDisclaimerViewProps

Disclaimer view

avatarsAvatarsOptions

Avatars to use for chat messages.