@nice-avatar-svg/preact
v0.0.3
Published
Library to generate SVG avatar for Preact
Downloads
48
Readme
Nice Avatar SVG for Preact
This is a fork of react-nice-avatar which provide and handy way to generate beautiful SVG avatar.
This package is about using it with Preact.
Usage
Install the lib
npm install @nice-avatar-svg/preact
import NiceAvatar from "@nice-avatar-svg/preact";
import { Suspense } from "preact";
export default function App() {
return (
<Suspens fallback={"Loading..."}>
<NiceAvatar
bgColor="#6BD9E9"
hairColor="#9287FF"
shirtColor="#F4D150"
skinColor="#F9C9B6"
earSize="big"
hairStyle="dannyPhantom"
noseStyle="curve"
glassesStyle="round"
eyesStyle="smiling"
facialHairStyle="beard"
mouthStyle="laughing"
shirtStyle="collared"
earRing="loop"
eyebrowsStyle="up"
/>
</Suspens>
);
}