@nice-avatar-svg/render
v0.0.2
Published
Library to generate SVG avatar using a single function
Downloads
1
Readme
Nice Avatar SVG
This is a fork of react-nice-avatar which provide and handy way to generate beautiful SVG avatar.
Usage
Install the lib
npm install @nice-avatar-svg/render
And then call the function to get the SVG image.
import render from "nice-avatar-svg/render";
const svg = await render({
bgColor: "#D2EFF3",
earSize: "small",
eyesStyle: "base",
facialHairStyle: undefined,
hairColor: "#AC6651",
hairStyle: "pixie",
mouthStyle: "smile",
noseStyle: "round",
shirtColor: "#F4D150",
shirtStyle: "open",
skinColor: "#F9C9B6",
earRing: false,
eyebrowsStyle: "up",
glassesStyle: "round",
shape: "circle",
});