Chat · Components
MessageInput
Chat message input with attachmentsPublic 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 sentplaceholderstringNoPlaceholder textdisabledbooleanNoDisable the inputreplyTo{ id: string; senderName: string; content: string; } | nullNoReply context if replying to a messageoncancelreply() => voidNoCancel reply callbackBindable state
This component has no bindable public state.
Callback events
onsend(content: string) => voidoncancelreply() => void