Use @abstraxn/warrant-react when owners need a structured mandate form in your React app — amount caps, allowlists, category blocks — plus a deterministic English readback (never LLM-generated). Pair it with @abstraxn/warrant on your backend to seal the mandate after the owner reviews and signs.

Prerequisites

  • React 18+
  • Dashboard setup — KYI Framework on for your app
  • Backend route that calls createMandate() with your application API key (never expose that key in the browser)

Install

Package: npm @abstraxn/warrant-react (peer: @abstraxn/warrant)

MandateForm + Readback

The form collects structured fields only — owners never type free-text policies. On submit you receive { domain, rules, readback }.
Never put your application API key in client-side code. createMandate() must run on a trusted backend. See SDK quickstart for the server-side Warrant client.

Backend route (example)

Standalone Readback

Show a deterministic summary anywhere in your UI:

Component reference

<MandateForm />

<Readback />

mandateReadback(rules, domain)

Builds a stable English paragraph from a RuleSet. Same rules always produce the same string — suitable for owner review before signing.

Design rules

  • Structured fields only — no free-text policy rules
  • Deterministic readback — template sentences, not an LLM
  • Agent never sees rules — runtime only gets ALLOW / DENY / ESCALATE via check()

Next steps