Skip to content

Just provide a string, create a character avatar with its own background color

License

Notifications You must be signed in to change notification settings

MonveChen/char-avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

char-avatar

Just provide a string, create a character avatar with its own background color

Usage

import { CharAvatar } from "char-avatar"

<CharAvatar str={"字符头像"} width={25} ></CharAvatar>

Params

str: string,

width: number,

bgColor?: string,

textColor?: string,

bgColors?: string[], //bgColors are already preset, you can customize it

cornerRadius?: number,

fontWeight?: number,

fontScale?: number,

pictureResolution?: number,

About

Just provide a string, create a character avatar with its own background color

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published