Signer Flow

Who it is waiting on, how long, and what you can do about it.

PROGet Signer Flow and 168 other Pro components with pro lifetime — Get Pro

Category
Documents
Access
Pro
Source
904 lines · one file

The decision inside it

A reminder invalidates the old link

Every signing provider works this way and almost none of them say so. The person who forwarded the first link to their lawyer needs to know before they click.

When to use it

Use Signer Flow to manage who signs a document and in what order: each signer's status (sent, opened, signed, declined), reorder, remind, reassign and void.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Liro's Signer Flow for this.
Install it: npx shadcn@latest add @liro/signer-flow
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/signer-flow.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @liro registry with your CLI token: see the Namespaced tab.

Usage

components/signers.tsx
import { SignerFlow, type Signer } from "@/components/ui/signer-flow";

const signers: Signer[] = [
  { id: "1", name: "Michael Carter", email: "michael@madgixs.com", status: "signed", you: true },
  { id: "2", name: "Ada Moss", email: "ada@vertically.dev", status: "opened", views: 2 },
];

export function Signers({ remind }: { remind: (signers: Signer[]) => Promise<void> }) {
  return <SignerFlow title="Signers" documentName="Vertically MSA" signers={signers} order="sequential" onRemind={remind} />;
}

API reference

“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.

TypeNotes
titlestring No–
documentNamestring No–
signersSigner[] No–
order"sequential" | "parallel" No–
onOrderChange(order: "sequential" | "parallel") => void No–
onAdd(email: string, role: Signer["role"]) => void No–
onRemove(signer: Signer) => void No–
onReorder(signers: Signer[]) => void No–
onRemind(signers: Signer[]) => void | Promise<void> NoChase whoever can currently act. Sequential passes one person; parallel passes all of them.
onReassign(signer: Signer) => void NoHand a recipient's turn to somebody else. Only before they have signed.
onVoid() => void NoStop the whole thing.
remindInvalidatesLinkboolean NoWhether resending replaces the previous link. Dropbox Sign and others invalidate the old one, and a signer clicking a dead link is a support ticket — so if it is true the component says so before the sender sends.
onClose() => void No–
lookLook NoLayered sets the flow in a tray, the heading above the card and the tally in the strip below. Flat is one card.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Liro foundations, installed alongside it

liro-themeavatartooltip

Accessibility

  • Keyboard reachable throughout, in visual order
  • Focus trapped in overlays, Escape closes them
  • Focus returns to whatever opened it
  • Live regions announce what changed, not that something did
  • Honours prefers-reduced-motion

Responsive behavior

  • Sizes to its container, not the viewport
  • Usable from 320px up
  • Pointer-based interaction, so trackpad and touch both work
  • No hover-only affordances