3D Avatar
Installation
npm install @xborglabs/avataryarn add @xborglabs/avatarBasic Usage
import { CustomizeAvatar } from "@xborglabs/avatar";
import { getPublicConfig } from "@xborglabs/ui-shared";
// Get the avatar configuration for your tenant
const avatarConfig = getPublicConfig();
// Define the inventory slots with the items the user has equipped
const slots = [
// Slots will be populated from your inventory API
];
function AvatarComponent() {
return (
<CustomizeAvatar
slots={slots}
config={avatarConfig}
/>
);
}Props
Required Props
Prop
Type
Description
Optional Props
Prop
Type
Description
Advanced Usage
Zooming to Specific Body Parts
Configuration Example
Configuration Properties
Property
Type
Description
Performance Considerations
Browser Compatibility
Support
Last updated