@acandrade/ac-bot-avatar-react
v1.0.3
Published
Official React components for AC Bot Avatars
Maintainers
Readme
@acandrade/ac-bot-avatar-react
React components for rendering official AC Bot Avatars. This package provides high-level components to easily integrate avatars into your React application.
Live Documentation & Playground
Installation
yarn add @acandrade/ac-bot-avatar-reactor
npm i @acandrade/ac-bot-avatar-reactImport components
import { ACBotAvatar, HashedACBotAvatar } from "@acandrade/ac-bot-avatar-react";Basic Usage
Simple Avatar
The ACBotAvatar is the base component. You can pass specific variants, eyes, and mouths.
<ACBotAvatar
size={128}
variant="full"
eye="sunglasses"
mouth="smile"
color="#6366f1"
/>Deterministic (Hashed) Avatar
Use HashedACBotAvatar when you want a unique avatar based on a user ID, email, or any unique string. It will always return the same avatar for the same hash.
<HashedACBotAvatar hash="[email protected]" size={64} />Features
- Deterministic Generation: Generate unique, consistent avatars from any string.
- Customizable: Control colors, facial expressions, and scaling.
- SVG Driven: Crystal clear at any size, weighs almost nothing.
- TypeScript: First-class support for types.
Keywords
- component
- react
- avatar
- profile-image
- bot
- generator
- deterministic
- svg
