1.0.1 • Published 2 years ago

user-profile-avatar v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

User Profile Avatar

Installation

npm i user-profile-avatar
yarn add user-profile-avatar

Usage

import { Avatar } from 'user-profile-avatar'

Simple example

<Avatar
  src="image link"
  alt="profile"
  size={80}
/>,

Render prop example

<Avatar
  src="image link"
  alt="profile"
  size={'Enter the size'}
/>,

Complete example

import { Avatar } from 'user-profile-avatar'

function App() {
  return (
    <div className="App">
      <Avatar 
        src='Enter your image Link'
        alt='profile'
        size={80}
      />
    </div>
  );
}

export default App;