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

Chat · Components

MessageInput

Chat message input with attachments

Public export

typescript
import { MessageInput } 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
onsend(content: string) => voidYesCallback when a message is sent
placeholderstringNoPlaceholder text
disabledbooleanNoDisable the input
replyTo{ id: string; senderName: string; content: string; } | nullNoReply context if replying to a message
oncancelreply() => voidNoCancel reply callback

Bindable state

This component has no bindable public state.

Callback events

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

Examples and explanation