Messages · Components
MessageDetail
Full message view with type-adaptive sectionsPublic export
typescript
import { MessageDetail } from '@happyvertical/smrt-messages/svelte';- Import path
@happyvertical/smrt-messages/svelte- Props
- 8
- Props described
- 8 of 8
- Bindable state
- 0
- Callback events
- 3
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
messageMessageDataYesMessage to display in full detail view.attachmentsAttachmentData[]NoAttachments associated with the message.accountAccountDataNoAccount that received the message.showHtmlbooleanNoReads the body from the HTML source, stripped of tags and shown as text.onreply(message: MessageData) => voidNoCalled when user clicks the reply button.onforward(message: MessageData) => voidNoCalled when user clicks the forward button.ondelete(message: MessageData) => voidNoCalled when user clicks the delete button.typeDetailSnippet<[{ message: MessageData; }]>NoCustom snippet to render type-specific details.Bindable state
This component has no bindable public state.
Callback events
onreply(message: MessageData) => voidonforward(message: MessageData) => voidondelete(message: MessageData) => void