s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Chat · Components

ThreadPanel

Threaded conversation side panel

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.44.0

Props

NameTypeRequiredDescription
threadChatThreadDataYesThread metadata
messagesChatMessageData[]YesMessages in the thread
currentProfileIdstringYesCurrent user's profile ID
onsend(content: string) => voidYesSend a reply to the thread
onclose() => voidYesClose the thread panel

Bindable state

This component has no bindable public state.

Callback events

  • onsend(content: string) => void
  • onclose() => void

Examples and explanation