@get-asset/react

AssetDocuments

Styled, drop-in documents table — description, file name, date, source, a status dot, and a type chip per row. A drag-and-drop upload zone (desktop) / header upload button (mobile) sits above the list; use the kebab for Preview / Download / Delete, with Delete opening an inline confirm and Preview opening the full-screen lightbox. Responsive via a container query; covers loading, error, empty, and success.

Preview

Documents

Drag and Drop or to Upload

PDF, JPG, PNG, XLS, CSV, TXT, or HEIC. Max 25 MB per file.

Description
File name
Date
Source
Status
Type
Home Depot
IMG_20260522_135953101
Apr 30, 2026
Email forward
Processed
Receipt
Chase Statement
January 2025
Jun 3, 2026
Integration
Processing
Statement
Gusto payroll run May 31
Payroll Summary_Run no 13
Jun 1, 2026
Integration
Needs Attention
Payroll
Other Document
011325 - Toter
Jun 9, 2026
Email forward
Failed
Other
Trip to Vancouver
baker_county_mileage_part2
Jun 13, 2026
Upload
Processing
Mileage
Bobcat equipment lease agreement
Heloc - January 2026
Jun 5, 2026
Upload
Processed
Other

Required scopes

The access token used by AssetProvider must include these scopes for this primitive to fetch data successfully:

  • document:read
  • document:create
  • document:delete

API reference

Root props

PropTypeDefaultDescription
titlestringOverride the card heading. Defaults to "Documents".
uploadHintstringOverride the dropzone hint copy (file types + size limit).
documentTypeDocumentTypeFilter by type (receipt / statement / payroll / bill / mileage / other). Passed to the API.
transactionIdstringFilter to documents linked to a transaction. Passed to the API.
onUpload(type?: DocumentType) => voidProvide to handle uploads yourself — the built-in dropzone upload is skipped.
onDelete(documentId: string) => voidProvide to handle deletion yourself — the built-in delete mutation is skipped.
onDownload(documentId: string) => voidProvide to handle download yourself — the built-in signed-URL download is skipped.
documentsDocumentPublic[]Override fetched data (skips the API call).
state"loading" | "error" | "empty"Force a specific state for testing.
uploadItemsUploadItem[]Seed the upload queue for previews/tests; supports uploading, success, and error chips.
signedUrlOverridestringUse this URL for the preview lightbox, skipping the signed-URL fetch.
classNamestringForwarded to the outer Card wrapper element.

States

Loading

Documents

Drag and Drop or to Upload

PDF, JPG, PNG, XLS, CSV, TXT, or HEIC. Max 25 MB per file.

Description
File name
Date
Source
Status
Type
Error

Documents

EmptyNo documents found.

Documents

Drag and Drop or to Upload

PDF, JPG, PNG, XLS, CSV, TXT, or HEIC. Max 25 MB per file.

No documents yet. Uploaded documents will appear here.
UploadingSeeded upload chips covering uploading, success, and error states.

Documents

Drag and Drop or to Upload

PDF, JPG, PNG, XLS, CSV, TXT, or HEIC. Max 25 MB per file.

2024 Behr B Form 1040 Individual Tax Return.pdfPDF · 84 KB
baker_county_mileage_part2.csvCSV · 1.2 MB
Heloc - April 2026 (1).pdfPDF · 30.0 MBFile is over size limit
Heloc - April 2026 (2).pdfPDF · 2.0 MBAlready uploaded
Description
File name
Date
Source
Status
Type
Home Depot
IMG_20260522_135953101
Apr 30, 2026
Email forward
Processed
Receipt
Chase Statement
January 2025
Jun 3, 2026
Integration
Processing
Statement
Gusto payroll run May 31
Payroll Summary_Run no 13
Jun 1, 2026
Integration
Needs Attention
Payroll
Other Document
011325 - Toter
Jun 9, 2026
Email forward
Failed
Other
Trip to Vancouver
baker_county_mileage_part2
Jun 13, 2026
Upload
Processing
Mileage
Bobcat equipment lease agreement
Heloc - January 2026
Jun 5, 2026
Upload
Processed
Other
MobileNarrow container preview of the responsive stacked layout.

Documents

Drag and Drop or to Upload

PDF, JPG, PNG, XLS, CSV, TXT, or HEIC. Max 25 MB per file.

Description
File name
Date
Source
Status
Type
Home Depot
IMG_20260522_135953101
Apr 30, 2026
Email forward
Processed
Receipt
Chase Statement
January 2025
Jun 3, 2026
Integration
Processing
Statement
Gusto payroll run May 31
Payroll Summary_Run no 13
Jun 1, 2026
Integration
Needs Attention
Payroll
Other Document
011325 - Toter
Jun 9, 2026
Email forward
Failed
Other
Trip to Vancouver
baker_county_mileage_part2
Jun 13, 2026
Upload
Processing
Mileage
Bobcat equipment lease agreement
Heloc - January 2026
Jun 5, 2026
Upload
Processed
Other