File card
bk-file-card: a single-file progress/status row: uploading (with a progress bar), uploaded, or failed.
Preview
A working preview of File card in the Brickclay style. Try it.
PDFQ3-report.pdf2.4 MB · 65%
PNGbrand-cover.png820 KB · Uploaded
DOCcontract.docxUpload failed, please try again
Interact with the preview to see events here.
Uploading
Uploaded
Failed
Upload failed, please try again
Try again
API reference
| Input | Type | Default | Description |
|---|---|---|---|
state | 'uploading' | 'uploaded' | 'failed' | 'uploading' | Which visual state to render. |
fileName / fileSize | string / string | null | – | Display text. |
progress | number | 65 | 0–100, used while state="uploading". |
errorMessage | string | – | Shown while state="failed". |
remove | EventEmitter<string> | output | Emits the card's id. |