react-random-avatar
v1.0.3
Published
A library to generate random avatars components using https://getavataaars.com
Downloads
16
Readme
Storybook
Storybook avaliable at https://maiconfriedel.github.io/react-random-avatar
Installation
You can install it with npm
or yarn
# npm
npm install react-random-avatar
#yarn
yarn add react-random-avatar
Usage scenarios
Default
Using the default component will generate a random avatar every time.
The size parameter is required in all usage scenarios.
<RandomAvatar
size={30}
/>
With a Seed
Using the component passing a seed parameter will generate everytime the same avatar.
<RandomAvatar
seed="seed"
size={30}
/>
Transparent
Passing the transparent
option to the component, will remove the blue circle behind the avatar.
Normal
<RandomAvatar
size={30}
/>
Transparent
<RandomAvatar
size={30}
transparent
/>