AttachmentButton
A paperclip-style button that uploads selected files and emits durable file descriptors. Binary content never enters the chat message body.
Import
Section titled “Import”import { AttachmentButton } from "@flanksource/clicky-ui/chat";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
acceptedMediaTypes |
string[] |
— | — |
className |
string |
— | — |
disabled |
boolean |
— | — |
files |
FileUIPart[] |
[] |
— |
limits |
AttachmentLimits |
— | — |
onAdd* |
(…) => void |
— | Called with newly selected files converted to FileUIParts. |
onError |
(…) => void |
— | — |
upload |
AttachmentUploadAdapter |
createAttachmentUploadAdapter() |
— |