pub fn Chat(props: ChatProps) -> impl IntoViewExpand 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
- messages:
impl Into<Signal<Vec<ChatMessage>>> - on_send:
Callback<String>
§Optional Props
- busy:
impl Into<Signal<bool>> - connected:
impl Into<Signal<bool>> - on_reset:
Callback<()> - placeholder:
impl Into<String>