Function: useMastraChat()
useMastraChat(
options?):Omit<ChatViewProps,"className">
Headless driver for the Mastra chat experience. Owns the full
conversation lifecycle (streaming, tool-event tracking, approvals,
model selection, clear, and infinite-scroll-up history) over
@mastra/client-js and returns the exact prop bag ChatView
consumes. Use this when you want the drop-in behaviour but need to
render the view yourself; otherwise reach for MastraChat.
Parameters
Section titled “Parameters”options?
Section titled “options?”UseMastraChatOptions = {}
Returns
Section titled “Returns”Omit<ChatViewProps, "className">