Skip to content

memori-ai/avatar-creator

Repository files navigation

@memori.ai/avatar-creator

A simple avatar creator component for AIsuru.

Installation

npm i @memori.ai/avatar-creator

Usage

Import the component and its styles:

import AvatarCreator from '@memori.ai/avatar-creator';
import '@memori.ai/avatar-creator/style.css';

Use it in your React application:

<AvatarCreator avatars={avatars} lang="en" onSelect={console.log} />

Props

interface Avatars {
  FEMALE: string[]
  MALE: string[]
}
Name Type Description
avatars Avatars Array of avatars to choose from, divided by gender
lang string Language code for the component (en or it)
onSelect (avatarURL: string) => void Callback function when an avatar is selected

Development

Install Bun and run the following command to install the dependencies:

To install dependencies:

bun install

To start the development server:

bun dev

To run the linter, check the formatting and the import sorting:

bun lint

And automatically fix relative issues (only safe fixes):

bun fix

This project was created using bun init in bun v1.3.5. Bun is a fast all-in-one JavaScript runtime.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors