oye-avatar

Now use avatar in just one click

Usage no npm install needed!

<script type="module">
  import oyeAvatar from 'https://cdn.skypack.dev/oye-avatar';
</script>

README

oye-avatar

Now use avatar in just one click

NPM JavaScript Style Guide

A Simple react component for Avatar

Example

Available Scripts

In the project directory, you can run:

react-horizontal-strip-datepicker

Install

npm install --save oye-avatar

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import OyeAvatar from 'oye-avatar'
import 'oye-avatar/dist/index.css'

ReactDOM.render(
  <React.StrictMode>
    <OyeAvatar
      name='John'
      gender='male'
      width='200'
      shape='circle'
      background='blue'
      onhover='shine'
      className='__any__class'
    />
  </React.StrictMode>,
  document.getElementById('root')
)

Available Props are

Prop Type Default
name string avatar
gender string male
width number 200
shape string square
background string #fff
onhover string shine
className string ""

License

MIT © Shavron