Chat · Components
ThreadPanel
Side panel for threaded conversation. Shows the root message, thread replies, and an input for new replies.Public export
typescript
import { ThreadPanel } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 5
- Props described
- 5 of 5
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
threadChatThreadDataYesThread metadatamessagesChatMessageData[]YesMessages in the threadcurrentProfileIdstringYesCurrent user's profile IDonsend(content: string) => voidYesSend a reply to the threadonclose() => voidYesClose the thread panelBindable state
This component has no bindable public state.
Callback events
onsend(content: string) => voidonclose() => void