Skip to main content

Chat

Function Chat 

Source
pub fn Chat(props: ChatProps) -> impl IntoView
Expand description

A chat panel that renders the messages transcript, auto-scrolling to the latest, and a compose box that fires on_send with the trimmed text on click or Enter (Shift+Enter inserts a newline). The header shows a connected dot, a busy spinner appears while working, and an optional on_reset renders a “New” button. placeholder sets the input hint.

§Required Props

§Optional Props