boring-avatars
Advanced tools
Comparing version 1.4.4 to 1.4.6
{ | ||
"name": "boring-avatars", | ||
"version": "1.4.4", | ||
"version": "1.4.6", | ||
"main": "build/index.js", | ||
"scripts": { | ||
"start": "node scripts/start.js", | ||
"build": "node scripts/build.js", | ||
"build": "node scripts/build.js && rm build/index.js.map", | ||
"demo": "node scripts/demo.js", | ||
@@ -9,0 +9,0 @@ "test": "node scripts/test.js" |
![boring avatars preview](https://github.com/boringdesigners/boring-avatars/blob/master/public/boring-avatars-preview.png?raw=true) | ||
<a href="https://www.npmjs.com/package/boring-avatars"> | ||
@@ -9,3 +8,2 @@ | ||
</a> | ||
@@ -35,9 +33,7 @@ | ||
<Avatar | ||
size=40 | ||
size={40} | ||
name="Maria Mitchell" | ||
variant="marble" | ||
colors={["#92A1C6", "#146A7C", "#F0AB3D", "#C271B4", "#C20D90"]} | ||
/> | ||
/>; | ||
``` | ||
@@ -47,7 +43,7 @@ | ||
| Prop | Type | | ||
| ------- | ------------------------------ | | ||
| size | number or string | | ||
| name | string | | ||
| Prop | Type | | ||
| ------- | -------------------------------------------------------------------- | | ||
| size | number or string | | ||
| name | string | | ||
| variant | oneOf: `marble`, `beam`, `pixel`,`sunset`, `ring`, `bauhaus`, `dome` | | ||
| colors | array of colors | | ||
| colors | array of colors | |
23102
47