Signer page kit
Steps
Where the person is in a short, linear flow of three or four steps.
- 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.
Each state
On a phone only the current step's name shows.
- 1Confirm it's you
- 2Review and fill in
- 3Sign
- Confirm it's you (done)
- 2Review and fill in
- 3Sign
- Confirm it's you (done)
- Review and fill in (done)
- 3Sign
tsx
import { Steps } from "@/components/signing";
const steps = ["Confirm it's you", "Review and fill in", "Sign"];
export function Example() {
return (
<>
<Steps steps={steps} current={0} />
<Steps steps={steps} current={1} />
<Steps steps={steps} current={2} />
</>
);
}
Four steps, with a name
- Upload (done)
- Place fields (done)
- 3Add signers
- 4Send
tsx
import { Steps } from "@/components/signing";
export function Example() {
return <Steps steps={["Upload", "Place fields", "Add signers", "Send"]} current={2} label="Sending a document" />;
}
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.
Steps
| Name | Type | Default | Description |
|---|---|---|---|
| steps | string[] | Three or four short step names. | |
| current | number | Index of the current step; earlier ones show a check. | |
| label | string | "Progress" | Name of the list for screen readers. |
Accessibility
- An ordered list with a name. The current step has aria-current=step; done steps show a check.