Q2_report.pdf2.4 MB
Default
Completed file row.
/render stateSingle uploaded-file row with thumbnail, progress, status, and remove affordance.
Use UploadItem inside upload components or queues. Keep the row compact and let progress/status carry the interaction state.
Controls update query params directly, so every primitive state can be linked, rendered, and screenshotted deterministically.
Every state maps to the same render route through the `state` query param.
Completed file row.
/render stateProgress row.
/render stateImage row with preview affordance.
/render stateRejected file row.
/render state| Name | Type | Default | Description |
|---|---|---|---|
name * | ReactNode | - | Visible file name. |
meta | ReactNode | - | Size, type, or secondary upload metadata. |
error | ReactNode | - | Error copy shown instead of metadata. |
status | 'idle' | 'uploading' | 'success' | 'error' | idle | Upload item status. |
progress | number | - | Optional 0-100 upload progress rail. |
previewUrl | string | - | Image preview URL. |
icon | IconName | file | Fallback glyph when no preview is present. |
onRemove | () => void | - | Shows and handles the remove affordance. |