Calm motion: animations on this site only fade, with no movement
Document checklist
The documents that a request needs, with an upload and a state for each
Shows a person which papers to send for a permit, a loan, or a visa, and what happened to each one.
Basic
2 of 4 required documents sent
- Identity card (KTP) RequiredAccepted · ktp-ana.jpg
- Tax number card (NPWP) RequiredBeing checked · npwp.pdf
- Lease of the place RequiredAll pages, signed by you and the owner.Not accepted · lease.pdfPage 2 is missing. Send the full lease again.
- Photo of the front of the place RequiredNot sent
- Floor plan OptionalOnly for places over 100 m².Not sent
docsis the list. Each document has anid, aname, astate, and optionalhint,required,accept,file, andreason.- The state is
missing,uploaded,checking,accepted, orrejected. It shows as a mark and words, with the file name. - A rejected document gets a red frame and the
reason, so the person knows what to fix. - The Upload or Replace button opens the file picker of the device. It emits
uploadwith the id and the file. You send the file and change the state. Screen readers hear the name of the document too, as in "Upload Lease". - A sent document can be removed with the ✕ button, which emits
remove. Documents that are accepted or being checked have no buttons. - The status line on top counts the required documents that are sent and not rejected.
- Change the words with
labelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessDocumentChecklist } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
docs* | BlessChecklistDoc[] | — | |
labels | Partial<Record<BlessChecklistDocState, string> & { progress: (done: number, total: number) => string; required: string; optional: string; upload: string; replace: string; remove: (name: string) => string; }> | — |
Events
| Name | Payload | Description |
|---|---|---|
remove | [id: string] | |
upload | [id: string, file: File] |