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

Chat · Components

MessageItem

No summary has been written for MessageItem. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

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

Props

NameTypeRequiredDescription
messageChatMessageDataYesMessage data to render
isOwnbooleanYesWhether this message was sent by the current user
onreply(id: string) => voidNoReply callback
onreact(id: string, emoji: string) => voidNoReact callback
onedit(id: string) => voidNoEdit callback
ondelete(id: string) => voidNoDelete callback

Bindable state

This component has no bindable public state.

Callback events

  • onreply(id: string) => void
  • onreact(id: string, emoji: string) => void
  • onedit(id: string) => void
  • ondelete(id: string) => void

Examples and explanation