Chat · Components
MessageItem
Individual message row. Displays avatar, message bubble, reactions, reply preview, and tool call data.Public export
typescript
import { MessageItem } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 4
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
messageChatMessageDataYesMessage data to renderisOwnbooleanYesWhether this message was sent by the current useronreply(id: string) => voidNoReply callbackonreact(id: string, emoji: string) => voidNoReact callbackonedit(id: string) => voidNoEdit callbackondelete(id: string) => voidNoDelete callbackBindable state
This component has no bindable public state.
Callback events
onreply(id: string) => voidonreact(id: string, emoji: string) => voidonedit(id: string) => voidondelete(id: string) => void