In the PDF
Signature block in the PDF
What a signature looks like on paper. The top line says what was checked, never a brand claim.
- In the server and the free signer
- AGPL-3.0-only
- Client only · no backend
The first line states what was checked: “Email verified with a one-time code” for envelopes, “Self-declared: identity not checked” in the free signer, red TEST or MOCK for test output (ADR 0015).
The typed signature uses the same face as on screen, embedded in the PDF. The server and the free signer draw it with the same code.
The CSS variables this sets
:root {
--signing-accent: #3157e8;
--sig-accent: #3157e8;
--sig-accent-soft: color-mix(in oklab, #3157e8 14%, white);
--sig-radius: 8px;
--radius-control: 8px;
--radius-panel: 12px;
--font-sans: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
}In the signer page kit, set the accent with accentProps(accent) on the element around the surface; it sets data-signing-accent and --signing-accent. The secure elements take the same values as a checked appearance object instead.
Tall field
Rendered from a real PDF stamped in your browser, marked MOCK.
import { stampPdf } from "@/components/free-signer/stamp";
// The free signer's stamp, in the browser. The server draws the same block with the same code.
export async function stampExample(pdf: Uint8Array) {
const { bytes } = await stampPdf({
pdf,
fields: [{ type: "signature", page: 1, x: 0.07, y: 0.32, width: 0.5, height: 0.36 }],
signature: { kind: "typed", text: "Ada Example" },
signerName: "Ada Example",
signedAt: new Date("2026-12-04T10:31:00Z"),
summaryPage: false,
mockLabel: "MOCK: example, not a signed document",
});
return bytes;
}
Short field
The same block in a lower field.
import { stampPdf } from "@/components/free-signer/stamp";
export async function stampExample(pdf: Uint8Array) {
const { bytes } = await stampPdf({
pdf,
fields: [{ type: "signature", page: 1, x: 0.07, y: 0.32, width: 0.5, height: 0.17 }],
signature: { kind: "typed", text: "Ada Example" },
signerName: "Ada Example",
signedAt: new Date("2026-12-04T10:31:00Z"),
summaryPage: false,
mockLabel: "MOCK: example, not a signed document",
});
return bytes;
}
Installation
npx shadcn@latest add …
Not published yet
Props
className and children are left out: every component that takes them passes them on.
drawSignatureBlock
| Name | Type | Default | Description |
|---|---|---|---|
| signature | typed | drawn | The typed text with its font, or the drawn image. | |
| assurance | string | First line: what was checked. Never a brand claim. | |
| warning | boolean | false | Red bracket and text for test or mock output. |
| title | string | The signer's name under the line. | |
| detail | string | Time and evidence id, or the fingerprint note. |