Chat · Components
MessageList
Scrollable chat message feedPublic export
typescript
import { MessageList } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 5
- Props described
- 5 of 5
- Bindable state
- 0
- Callback events
- 3
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
messagesChatMessageData[]YesMessages to displaycurrentProfileIdstringYesCurrent user's profile ID to determine own messagesonloadmore() => voidNoLoad more messages (infinite scroll)onreply(id: string) => voidNoReply to a messageonreact(id: string, emoji: string) => voidNoReact to a messageBindable state
This component has no bindable public state.
Callback events
onloadmore() => voidonreply(id: string) => voidonreact(id: string, emoji: string) => void