Document Request
Chasing paperwork, from both sides. The responder uploads; the requester reviews. The component takes the side as a prop, because a responder must never land on a list containing the requester's own working notes.
The decision inside it
Progress counts approvals
Someone who uploaded all six files and had two rejected is not finished. A bar that reads 6 of 6 tells them a lie they discover a week later, when the deal is late.
Installation
How you get it
One command. The CLI writes the file into components/ui/ and installs what it needs.
npx shadcn@latest add https://layropro.com/r/document-requestPro components need the CLI token from your account page. Put it in your environment as LAYRO_KEY and use the namespaced form.
API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
title | string | — |
counterparty | { name?: string; email: string; avatar?: string } | Who is being asked, or who is asking — depends on `role`. |
phases | RequestPhase[] | — |
resources | RequestResource[] | Read-only material: signed contracts, guides, anything they may need but are not being asked to produce. Never mixed into the checklist. |
dueAt | Date | string | number | — |
role | "requester" | "responder" | Which side is looking. The responder uploads; the requester reviews. A responder must never land on a list containing the requester's own work. |
sent | boolean | Before sending, the list is editable. After, it is fixed. |
onAddItem | (phaseId: string, label: string) => void | — |
onRemoveItem | (item: RequestItem) => void | — |
onApprove | (item: RequestItem) => void | — |
onReject | (item: RequestItem, reason: string) => void | — |
onUpload | (item: RequestItem, file: File) => void | Promise<void> | — |
onSend | () => void | Promise<void> | — |
onClose | () => void | — |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themeavatartooltipLifetime access
Every component, and everything we ship next.
- All 65 components, source included
- The template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in Documents
Document Viewer
PaidPages, zoom, thumbnails and a comment mode. You supply the renderer.
Included with lifetime access
Annotation Pins
PaidPins on the page and a searchable panel — one set of threads, two views.
Included with lifetime access
Signer Flow
PaidWho it is waiting on, how long, and what you can do about it.
Included with lifetime access