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";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"
/>
);
}Approved by Karim Aziz
91be 07f2Rejected by Jo Bernardimport { 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
| Prop | Type | Default | Description |
|---|---|---|---|
who / detail | string | — | Name, and a role or email under it. |
action | string | "Approved" | Signed, Approved, Validated. |
at | string | — | ISO timestamp: 2026-11-19T14:32:10Z is written 2026-11-19 14:32 UTC. |
method | string | — | Drawn signature, Email code… |
hash / hashLength | string; number | 8 | Only the first characters are shown, in fours. |
state | "valid" | "revoked" | "unverified" | "valid" | Always written, not only coloured. |
compact | boolean | false | One line, for a margin or a cell. |
className | string | — | Extra classes. |