Supports CID lookup, file upload, or both modes simultaneously. Results are returned via the onResult callback.
- Preview
- Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
mode | "upload" | "cid" | "both" | "both" | Search input modes |
accept | string | — | MIME types for file upload (e.g. "image/*") |
maxSize | number | — | Max file size in bytes |
onResult | (result: { cid: string }) => void | — | Called when a result is selected |
className | string | — | Additional CSS classes |