Signer page kit
Callout
Information inside a page. Tone always comes with an icon, and with a title when the text is long.
- 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.
Info
Sandbox document
Signed with a test key. It shows how signing works and has no legal effect.
tsx
import { Callout } from "@/components/signing";
export function Example() {
return (
<Callout tone="info" title="Sandbox document">
Signed with a test key. It shows how signing works and has no legal effect.
</Callout>
);
}
Success
Seal verified
The evidence matches this PDF, byte for byte.
tsx
import { Callout } from "@/components/signing";
export function Example() {
return (
<Callout tone="success" title="Seal verified">
The evidence matches this PDF, byte for byte.
</Callout>
);
}
Warning
Identity not verified
The name was typed by the signer. Nobody checked it.
tsx
import { Callout } from "@/components/signing";
export function Example() {
return (
<Callout tone="warning" title="Identity not verified">
The name was typed by the signer. Nobody checked it.
</Callout>
);
}
Danger, with an action
The code is wrong or has expired
You have 4 tries left.
tsx
import { Callout } from "@/components/signing";
export function Example() {
return (
<Callout tone="danger" title="The code is wrong or has expired" action={<button className="btn-secondary">Send a new code</button>}>
You have 4 tries left.
</Callout>
);
}
Neutral, one line
Your file never leaves your browser.
tsx
import { Callout } from "@/components/signing";
export function Example() {
return (
<Callout tone="neutral">Your file never leaves your browser.</Callout>
);
}
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.
Callout
| Name | Type | Default | Description |
|---|---|---|---|
| tone | "info" | "success" | "warning" | "danger" | "neutral" | "info" | Always with its icon. Danger is announced. |
| title | ReactNode | Bold first line. | |
| action | ReactNode | A button or link under the text. | |
| role | "alert" | "status" | Announce it. Danger is an alert by default. |
Accessibility
- Danger is announced as an alert by default. Pass role to announce another tone.
- Tone is never only a colour: each has its own icon.