GithubHelp home page GithubHelp logo

igaimerca / react-hot-avatars Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 2.0 1.68 MB

The Best React Avatars in Town.

Home Page: https://react-hot-avatars.vercel.app

License: MIT License

CSS 10.42% HTML 11.99% TypeScript 73.51% JavaScript 4.08%

react-hot-avatars's Introduction

<Avatar/>
npm downloads NPM Version

react-hot-avatars - Try it out


The Best React Avatars in Town.

Lightweight, customizable and beautiful by default.

Website ยท npm
Cooked by Aime and Leila ๐Ÿ‘จโ€๐Ÿณ

Install

With NPM:

npm install react-hot-avatars

With Yarn:

yarn add react-hot-avatars

Demo

Check live demo here Link

Getting Started

  1. Import the Avatar component from react-hot-avatars:

    import Avatar from 'react-hot-avatars';
  2. Start using it!

    Example

    <Avatar name="john doe" size="300" rounded />
    <Avatar name="_Leila" size="200" />

A React Component using react-hot-avatars

import Avatar from 'react-hot-avatars';

const App = () => {
  return (
    <>
     <Avatar name="aimed" size="300" />
    <>
  );
};

Supported props

  1. name
  2. size
  3. rounded
You can pass anything to generate a unique avatar for

Examples:

 john doe, [email protected], ๐Ÿ˜‚Joy, etc

Other Options

Avatar

Attribute Options Default Description
name string "default" Will be used to generate avatar based on the initials of the person
size string "80" Use values like "200", "300", etc for adjusting the size of the avatar.
rounded boolean false Can be true or false to make the avatar be rounded or not Default false

Request a feature

If you feel like you are missing a cool feature in our package, here are few steps to follow for you to request an new feature

  • Create an issue here
  • Add title of of the issue, eg: requesting an active badge feature
  • In your description try to add clear explanation about your feature with an image attached if possible.

Contributing

Hello there ๐Ÿ‘‹, We're very happy you want to contribute to this project. But be sure to follow the Contribution guide && code of conduct before submitting your contribution๐Ÿ˜Š .

Start contributing

To contribute follow these simple steps ๐Ÿ˜ƒ

  1. Fork the repo and create your branch from main.
  2. Create a new issue
  3. Commit changes to your branch..
  4. Create pull request ๐ŸŽ‰

Make sure to make a good branch name

Your branch should be name like your_name/issue_fix.
For example: gasaroleila/avatar-style

Issues

  • If you spot a problem, search if an issue already exists in the search the issue tracker. If a related issue doesn't exist, you can open a new issue using a relevant issue form.
  • If you want to simply solve issues, Find one to solve in the existing issues

Maintainers

License

MIT License

react-hot-avatars's People

Contributors

gasaroleila avatar igaimerca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-hot-avatars's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.