Messages · Components
AttachmentUpload
No summary has been written for AttachmentUpload. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.Public export
typescript
import { AttachmentUpload } from '@happyvertical/smrt-messages/svelte';- Import path
@happyvertical/smrt-messages/svelte- Props
- 4
- Props described
- 4 of 4
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
attachmentsAttachmentData[]YesArray of already attached files to display.onattach(files: File[]) => voidNoCalled when user drops or selects files to attach.onremove(index: number) => voidNoCalled when user removes an attachment by its index.maxSizenumberNoMaximum file size in bytes; files exceeding this are rejected.Bindable state
This component has no bindable public state.
Callback events
onattach(files: File[]) => voidonremove(index: number) => void