Signer page kit
People and status
Who is part of the envelope and where each person is. Status is a word, never only a colour.
- 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.
Four people, one in each status
- Ada Example (you)Signed
- Bo SampleInvited
- Cy DemoWaiting for their turn
- Dee TestDeclined
tsx
import { PersonList } from "@/components/signing";
export function Example() {
return (
<PersonList
people={[
{ name: "Ada Example", you: true, status: "signed", label: "Signed" },
{ name: "Bo Sample", status: "pending", label: "Invited" },
{ name: "Cy Demo", status: "waiting", label: "Waiting for their turn" },
{ name: "Dee Test", status: "declined", label: "Declined" },
]}
/>
);
}
Avatars
tsx
import { Avatar } from "@/components/signing";
export function Example() {
return (
<>
<Avatar name="Ada Example" highlight />
<Avatar name="Bo Sample" />
<Avatar name="Cy Demo" size="sm" />
</>
);
}
Status pills
SignedInvitedWaitingDeclined
tsx
import { StatusPill } from "@/components/signing";
export function Example() {
return (
<>
<StatusPill status="signed">Signed</StatusPill>
<StatusPill status="pending">Invited</StatusPill>
<StatusPill status="waiting">Waiting</StatusPill>
<StatusPill status="declined">Declined</StatusPill>
</>
);
}
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.
PersonList
| Name | Type | Default | Description |
|---|---|---|---|
| people | { name, you?, status, label }[] | Status is a word in a pill, never only a colour. |
Avatar
| Name | Type | Default | Description |
|---|---|---|---|
| name | string | Initials are taken from it. | |
| highlight | boolean | false | The current person, in the accent. |
| size | "sm" | "md" | "md" | 32 or 36 px. |
StatusPill
| Name | Type | Default | Description |
|---|---|---|---|
| status | "signed" | "declined" | "waiting" | "pending" | Colour follows the word: signed green, declined red, waiting blue (their turn has not come), pending grey (invited, not acted yet). |
Helpers
| Name | Type | Default | Description |
|---|---|---|---|
| initials | (name: string) => string | Up to two initials, for Avatar. |
Accessibility
- Avatars are decorative; the name is text next to them.
- The current person is marked in text (you), not only by colour.