0.0.2 • Published 1 month ago

@nice-avatar-svg/render v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Nice Avatar SVG

This is a fork of react-nice-avatar which provide and handy way to generate beautiful SVG avatar.

preview

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",
});
0.0.2

1 month ago

0.0.1

1 month ago