1.0.4 • Published 2 years ago

char-avatar v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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,

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago