1.0.3 • Published 3 years ago

@powerbull/boring-avatars-vue v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Boring Avatars

Boring avatars is a tiny JavaScript Vue library that generates custom, SVG-based, round avatars from any username and color palette.

It is a direct port of the React library https://github.com/boringdesigners/boring-avatars

boring avatars preview

License: MIT

NPM Version

Size

Install

yarn add @powerbull/boring-avatars-vue

or

npm install @powerbull/boring-avatars-vue

Usage

import avatar from "boring-avatars-vue";

<avatar
  :size="40"
  name="Maria Mitchell"
  variant="marble"
  :colors="['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']"
/>;

Props

PropType
sizenumber or string
squareboolean
namestring
variantoneOf: marble, beam, pixel,sunset, ring, bauhaus
colorsarray of colors

Source

You can embed your boring avatars using the boring avatars source.

To choose a random avatar from a specific user and a color palette, the format follows:

https://source.boringavatars.com/marble/120/Maria%20Mitchell?colors=264653,2a9d8f,e9c46a,f4a261,e76f51

Avatar for Maria Mitchell

For more information, check out the README