Socket
Book a DemoInstallSign in
Socket

@schoolhouse/avatars-customizer

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schoolhouse/avatars-customizer

Customizer for React Avatars

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
2
Created
Source

avatars-customizer

Embeddable custom avatar generator

Screenshot

Install

npm install @schoolhouse/avatars-customizer
# OR
yarn add @schoolhouse/avatars-customizer

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

Usage

import React from 'react'

import AvatarsCustomerizer from '@schoolhouse/avatars-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 (
    <AvatarsCustomizer value={customizedAttributes} onChange={setCustomizedAttributes}/>
  )
}

License

MIT © cgross

FAQs

Package last updated on 20 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts