avataaars-customizer

1.1.2 • Public • Published

avataaars-customizer

Embeddable custom avatar generator based on https://avataaars.com/ and https://getavataaars.com/.

Screenshot

Install

npm install --save avataaars-customizer

React, react-dom, avataaars, and lodash are peer dependencies.

Usage

import React from 'react'
 
import AvataaarsCustomerizer from 'avataaars-customizer'
 
function Example() {
  const [customizedAttributes,setCustomizedAttributes] = React.useState({
    topType:'LongHairMiaWallace',
    accessoriesType:'Prescription02',
    hairColor:'BrownDark',
    facialHairType:'Blank',
    clotheType:'Hoodie',
    clotheColor:'PastelBlue',
    eyeType:'Happy',
    eyebrowType:'Default',
    mouthType:'Smile',
    skinColor:'Light',
  });
 
  return (
    <AvataaarsCustomizer value={customizedAttributes} onChange={setCustomizedAttributes}/>
  )
}

License

MIT © cgross

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    2
  • 1.1.1
    1
  • 1.1.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i avataaars-customizer

Weekly Downloads

5

Version

1.1.2

License

MIT

Unpacked Size

62.5 kB

Total Files

7

Last publish

Collaborators

  • cgross