Blocks / Seal badge

Seal badge

Proof of a signature or approval: who, when with its zone, how, and a hash prefix.

import { SealBadge, formatStamp, hashPrefix } from "@forgeron/ui";
/01 → Default

SignedVerified

Léa Martin · Client

When
Method
Drawn signature, email code
Hash
a3f9 1c07
import { SealBadge } from "@forgeron/ui";

export default function Default() {
  return (
    <SealBadge
      action="Signed"
      who="Léa Martin"
      detail="Client"
      at="2026-11-19T14:32:10Z"
      method="Drawn signature, email code"
      hash="a3f91c07d5b2e8a4"
    />
  );
}
/02 → Compact
Approved by Karim Aziz91be 07f2Rejected by Jo Bernard
import { SealBadge } from "@forgeron/ui";

export default function Compact() {
  return (
    <div style={{ display: "grid", gap: 8 }}>
      <SealBadge compact who="Karim Aziz" at="2026-11-18T09:05:00Z" hash="91be07f2c3" />
      <SealBadge
        compact
        who="Jo Bernard"
        action="Rejected"
        at="2026-11-18T11:40:00Z"
        state="revoked"
      />
    </div>
  );
}
API → Props
PropTypeDefaultDescription
who / detailstring—Name, and a role or email under it.
actionstring"Approved"Signed, Approved, Validated.
atstring—ISO timestamp: 2026-11-19T14:32:10Z is written 2026-11-19 14:32 UTC.
methodstring—Drawn signature, Email code…
hash / hashLengthstring; number8Only the first characters are shown, in fours.
state"valid" | "revoked" | "unverified""valid"Always written, not only coloured.
compactbooleanfalseOne line, for a margin or a cell.
classNamestring—Extra classes.