components / asset-sidebar
asset-sidebar.
scrollable image/asset sidebar. drag a row into a textarea or click insert; optional drop zone for uploads.
installation
bunx @justin06lee/chrome@latest add asset-sidebarprops
| name | type | default | description |
|---|---|---|---|
| assets | Asset[] | - | rows to render. |
| onInsert | (asset: Asset) => void | - | fired by the insert button. |
| onDelete | (asset: Asset) => void | - | fired by the delete button; parent owns confirm. |
| onUpload | (files: File[]) => void | - | files dropped on the drop zone. omit to hide it. |
| title | string | 'images' | |
| description | string | - | |
| className | string | - | |
| emptyLabel | string | 'no images yet.' |