0.2.0 • Published 7 months ago

prettyavatars v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Pretty Avatars

prettyavatars is collection of pretty default avatars to use in your next project ✨

Install

yarn add prettyavatars

npm install prettyavatars

pnpm add prettyavatars

Usage

import Avatar from 'prettyavatars'

<Avatar
  variant='marble'
  name='Maria Mitchell'
  size={40}
  colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>

Or with tree-shaking:

import LetterAvatar from 'prettyavatars/letter'

<LetterAvatar
  name='Maria Mitchell'
  size={40}
  colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>

Props

PropType
variantoneOf: letter, letter-plain, pixel-art, smile, marble, beam, pixel,sunset, ring, bauhaus,
namestring
sizenumber or string, 40px (default)
squareboolean: false (default)
colorsarray of colors

* bold means required

0.2.0

7 months ago

0.1.0

9 months ago

0.0.5

10 months ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago