Signer page kit
Download Tile
A file and what it is for, so a signer knows which one to keep.
- In the signer page, not yet in the package
- AGPL-3.0-only
- Client only · no backend
Theme
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.
A completed envelope
tsx
import { DownloadTile } from "@/components/signing";
export function Example() {
return (
<>
<DownloadTile href="/signed.pdf" title="Signed PDF" hint="The document with every signature" />
<DownloadTile href="/evidence.json" title="Evidence" hint="evidence.json · what happened, and when" />
<DownloadTile href="/evidence.sig.json" title="Evidence seal" hint="evidence.sig.json · proves the evidence is unchanged" />
</>
);
}
One file, saved under a name
tsx
import { DownloadTile } from "@/components/signing";
export function Example() {
return <DownloadTile href="/signed.pdf" title="Your copy" download="nda-signed.pdf" />;
}
Installation
npx shadcn@latest add …
Not published yet
Not in the registry (packages/ui/registry.json) yet.
Props
className and children are left out: every component that takes them passes them on.
DownloadTile
| Name | Type | Default | Description |
|---|---|---|---|
| href | string | The file. | |
| title | string | What the file is. | |
| hint | string | What it is for. | |
| download | string | File name to save as. |
Accessibility
- A link with the file's name and hint in its text.