## Use Cases
ImageList component is used to display pending or uploaded images, supporting preview, delete, status display and more.
## Upload Flow
The component itself does not handle actual upload operations or file selection, only displays images and status. File selection and upload are controlled by the developer.
The upload flow is:
1. User clicks upload button, triggers `onclickUpload` event
2. Developer implements file selection (e.g., native input or third-party library)
3. After getting files, call component's `addFiles` method to add them
4. Component triggers `onadd` event
5. Business code handles upload logic, updates `status` and `progress` in `value`
6. Update `status` to `success` or `error` when complete
```svelte
```
## Upload Status
- `pending`: Waiting to upload
- `uploading`: Uploading (can show progress)
- `success`: Upload succeeded
- `error`: Upload failed (click to retry)
## Works with ImagePreview
Component has built-in ImagePreview, clicking image opens preview directly. For custom preview behavior, handle it via `onpreview` event.
## Notes
- Component uses `URL.createObjectURL` to create temporary preview URL
- Temporary URL is automatically revoked when image is deleted
- Recommend setting reasonable `max` and `maxSize` limits