boring-neutral-avatars
v1.6.4
Published
Boring neutral avatars takes the boring avatars 'beam' avatar and updates the facial features to be neutral and better suited for behavioral research.
Downloads
7
Maintainers
Readme
Boring Neutral Avatars
Boring neutral avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Install
yarn add boring-neutral-avatars
or
npm install boring-neutral-avatars
Usage
import Avatar from "boring-neutral-avatars";
<Avatar
size={40}
name="Maria Mitchell"
variant="beam"
colors={["#92A1C6", "#146A7C", "#F0AB3D", "#C271B4", "#C20D90"]}
/>;
Props
| Prop | Type |
| ------- | ------------------------------------------------------------ |
| size | number or string |
| square | boolean |
| name | string |
| variant | oneOf: marble
, beam
, pixel
,sunset
, ring
, bauhaus
|
| colors | array of colors |