Signer page kit
Status Card
The screen that ends a flow: signed, waiting, declined. One per screen.
- 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.
Signed
Thank you, you have signed
We will email you when everyone has signed. You can close this page.
tsx
import { CheckIcon, StatusCard } from "@/components/signing";
export function Example() {
return (
<StatusCard tone="success" icon={<CheckIcon size={26} />} title="Thank you, you have signed">
We will email you when everyone has signed. You can close this page.
</StatusCard>
);
}
Waiting
It is not your turn yet
We will email you when it is your turn.
tsx
import { ClockIcon, StatusCard } from "@/components/signing";
export function Example() {
return (
<StatusCard tone="info" icon={<ClockIcon />} title="It is not your turn yet">
We will email you when it is your turn.
</StatusCard>
);
}
Declined
You declined to sign
The sender has been notified.
tsx
import { StatusCard, XIcon } from "@/components/signing";
export function Example() {
return (
<StatusCard icon={<XIcon />} title="You declined to sign" headingLevel={2}>
The sender has been notified.
</StatusCard>
);
}
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.
StatusCard
| Name | Type | Default | Description |
|---|---|---|---|
| title | string | The outcome, as the page's h1. | |
| icon | ReactNode | One icon in the tone's colour. | |
| tone | "info" | "success" | "danger" | "neutral" | "neutral" | Same names as Callout. |
| headingLevel | 1 | 2 | 3 | 1 | 1 when the card is the page's outcome. |
Accessibility
- The title is the page's h1 by default (headingLevel 1). Use 2 or 3 inside another page.