Attachment
A file attached to a prompt or a message, with its type, size and a preview.
API Reference
The Attachment component is a wrapper around the button that shows a file name, type and size.
| Prop | Type | Default |
|---|---|---|
name | string | — |
meta | string | — |
icon | ReactNode | file icon |
size | "sm""lg" | "lg" |
shape | "default""rounded" | "default" |
onRemove | () => void | — |
onOpen | () => void | — |
