Newest modern Lightweight Avatar Generator for React π
Install
Open your terminal and let's install modern-react-avatar.
npm install --save modern-react-avatar
Usage
- Import Custom Element:
import { Avatar } from 'modern-react-avatar'
import 'modern-react-avatar/dist/index.css'
- Start using it!
<Avatar name="Fathy" />
Some examples:
<Avatar name="Fathy" shape="square" />
<Avatar name="Fathy" randomColor="true" />
<Avatar name="Fathy" size="large" />
<Avatar icon="true" size="large" alt="alt text" />
<Avatar src="https://via.placeholder.com/150" alt="alt text" />
Well done! π
Thanks for reading! Say Hallo! Twitter
Top comments (0)