Skip to content
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
  • docs is the list. Each document has an id, a name, a state, and optional hint, required, accept, file, and reason.
  • The state is missing, uploaded, checking, accepted, or rejected. 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 upload with 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 labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessDocumentChecklist } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
docs*BlessChecklistDoc[]—
labelsPartial<Record<BlessChecklistDocState, string> & { progress: (done: number, total: number) => string; required: string; optional: string; upload: string; replace: string; remove: (name: string) => string; }>—

Events

NamePayloadDescription
remove[id: string]
upload[id: string, file: File]

Released under the MIT License. Character names and artwork belong to their owners.