npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-hot-avatars

v1.0.2

Published

<h1>&lt;Avatar/&gt;</h1>

Downloads

16

Readme

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 :wave:, 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:blush: .

Start contributing

To contribute follow these simple steps :smiley:

  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 :tada:

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