user-profile-avatar
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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;

/user-profile-avatar/

    Package Sidebar

    Install

    npm i user-profile-avatar

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.81 kB

    Total Files

    12

    Last publish

    Collaborators

    • gauravk2610