README
oye-avatar
Now use avatar in just one click
A Simple react component for Avatar
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