@agent-face/react
v1.1.0
Published
React component for deterministic crypto avatars from wallet addresses, public keys, hashes, and any stable string.
Maintainers
Readme
@agent-face/react
React wrapper for deterministic crypto avatars from wallet addresses, public keys, hashes, and any stable string.
Install
pnpm add @agent-face/reactPeer dependency:
pnpm add react react-domUsage
import { AgentFace } from "@agent-face/react";
export function Example() {
return (
<AgentFace
seed="demo-agent"
characterType="animal"
size={120}
className="rounded-3xl shadow-sm"
imageUrl="https://example.com/avatar.png"
/>
);
}Props
seed?: stringconfig?: AgentFaceConfigcharacterType?: CharacterTypesize?: number | stringclassName?: stringimageUrl?: stringimageAlt?: stringimageClassName?: string
Notes
seedandconfigare both supported.characterTypedefaults to"robot"when omitted.- Good fit for wallet UIs, onchain profile cards, member lists, and portfolio dashboards.
- When
configis provided, it takes precedence over generated config. - When
imageUrlis provided, the component shows a lightweight sketch placeholder while the image is loading. - When
imageUrlfails to load, the component automatically falls back to the generated AgentFace avatar. - Custom
classNameworks for utility-first styling such as Tailwind CSS. - Repository: https://github.com/joyboy-sats/agent-face
