Signer page kit
Checklist and progress
What is left before the person can finish, with a bar that turns green when they can.
- 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.
Part done
- Required fields filled in (done)
- Add your signature
- Confirm you agree
tsx
import { Checklist, ProgressBar } from "@/components/signing";
export function Example() {
return (
<div>
<ProgressBar value={1} max={3} label="Steps completed" />
<Checklist
items={[
{ ok: true, label: "Required fields filled in" },
{ ok: false, label: "Add your signature" },
{ ok: false, label: "Confirm you agree" },
]}
/>
</div>
);
}
Ready
- Required fields filled in (done)
- Add your signature (done)
- Confirm you agree (done)
tsx
import { Checklist, ProgressBar } from "@/components/signing";
export function Example() {
return (
<div>
<ProgressBar value={3} max={3} done label="Steps completed" />
<Checklist
items={[
{ ok: true, label: "Required fields filled in" },
{ ok: true, label: "Add your signature" },
{ ok: true, label: "Confirm you agree" },
]}
/>
</div>
);
}
Open items that take the person there
- Required fields filled in (done)
Press an open item.
tsx
import { Checklist, scrollToField } from "@/components/signing";
export function Example() {
return (
<Checklist
items={[
{ ok: true, label: "Required fields filled in" },
{ ok: false, label: "Add your signature", onSelect: () => scrollToField("field-signature") },
{ ok: false, label: "Confirm you agree", onSelect: () => scrollToField("agree") },
]}
/>
);
}
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.
Checklist
| Name | Type | Default | Description |
|---|---|---|---|
| items | { ok, label, onSelect? }[] | What is left. Open items with onSelect take the person there. |
ProgressBar
| Name | Type | Default | Description |
|---|---|---|---|
| value | number | Done so far. | |
| max | number | Total. | |
| label | string | What it measures, for screen readers. | |
| done | boolean | false | Turns green when the person can finish. |
Accessibility
- The bar is a progressbar with a name and its values.
- Open items with onSelect are buttons that take the person to the step.