Components / Signature Font Picker

Signature

Signature Font Picker

The person's name in each of the four signature faces, to choose from.

  • @signnative/ui
  • MIT
  • 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.

With a name input

Style

value: "delafield"

No name yet

An empty name shows “Your name” in each face.

A long name at phone width

Installation

npx shadcn@latest add …

Not published yet

Not in the registry (packages/ui/registry.json) yet.

API

className and children are left out: every component that takes them passes them on.

SignatureFontPicker

NameTypeDefaultDescription
textstringThe name to show in each face. Empty shows "Your name".
valueSignatureFontIdThe chosen face.
onChange(id: SignatureFontId) => voidCalled with the face the person chose.
labelledBystringId of a visible label; without it the group is named "Signature font".

Accessibility

  • A radio group: Tab reaches the chosen face, arrow keys move between faces and choose.
  • Give it a visible label and pass its id as labelledBy.