Components / Field Box

Signer page kit

Field Box

A field on a document page in four states: waiting, next to do, done, and filled in for you.

  • In the signer page, not yet in the package
  • AGPL-3.0-only
  • Client only · no backend

Initials are a design preview: the API has no initials field yet (proposal in ADR 0019).

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.

Todo: waiting for you

Click to sign
Initial
Job title
2026-12-04

Active: the next thing to do

Add signature Click to sign
Initial
Job title
2026-12-04

Done

Ada Example
AE
CTO
2026-12-04

Locked: filled in for you, or someone else's

Click to sign
Initial
Job title
2026-12-04

Where the tag sits

Above by default; beside or below when another field is just above. Quiet when a bottom bar is the main action.

Above
Date
Add signature

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.

FieldBox

NameTypeDefaultDescription
kind"signature" | "initials" | "text" | "date" | "checkbox"What the field holds.
state"todo" | "active" | "done" | "locked"Waiting, next to do, done, or filled in for you.
box{ x, y, width, height }Position on the page, each 0 to 1.
labelstring | nullThe sender's label, used in the tag and for screen readers.
requiredbooleanfalseRequired, as data-required. Say it in the control's label too.
quietTagbooleanfalseOutlined tag, when a bottom bar is the primary action.
tag"above" | "side" | "below""above"Where the active tag sits; beside or below when another field is just above.
onActivate() => voidCalled when the box itself is clicked or tapped.
idstringTarget id for the navigator and scrollToField.

Accessibility

  • State is never only a colour: dashed, solid with a tag, a check badge, or grey.
  • Required is data-required on the box; say it in the control's label too.