Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.13 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.13 KB

react-gradient-avatar

🌈 react-gradient-avatar is a React component that generates beautiful avatars.

react-gradient-avatar

Table of Contents

Installation

To install, you can use npm:

$ npm i react-gradient-avatar
$ yarn add react-gradient-avatar

Examples

Here is a simple example of react-gradient-avatar:

import React from "react";
import ReactDOM from "react-dom";
import GradientAvatar from "react-gradient-avatar";

const App = () => {
  // ...

  return (
    <div>
      <GradientAvatar
        size="large"
        name="Brandon Sueur"
        gradient={{
          from: "#FDC830",
          to: "#F37335",
        }}
      />
    </div>
  );
}

ReactDOM.render(<App/>, appElement);

You can find the example in the examples directory, which you can run in a local development server using npm start or yarn start.

Demo

There is a demo hosted on my personal website.