Components / Buttons and inputs

Signer page kit

Buttons and inputs

The primitives everything else is made of: button classes, text inputs and the spinner. One primary button per view.

  • 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.

Buttons

Busy, and not ready yet

aria-disabled keeps a button pressable, so a press can point to what is left.

Text inputs: filled, empty, disabled, error

Enter a whole email address.

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.

Spinner

NameTypeDefaultDescription
sizenumber16Inside a busy button, next to its label.

Classes

NameTypeDefaultDescription
btn-primaryclassThe one main action. aria-disabled keeps it pressable while it points to what is left.
btn-secondaryclassOther actions.
btn-ghostclassQuiet actions such as Cancel.
btn-dangerclassDecline and other actions that end something.
inputclassText input. 16 px on touch screens, so iOS does not zoom.
labelclassForm label.

Accessibility

  • Buttons have a visible focus outline. A busy button keeps its label next to the spinner.