0.0.18 • Published 6 years ago

@micalgenus/gatsby-plugin-github-avatar v0.0.18

Weekly downloads
14
License
MIT
Repository
github
Last release
6 years ago

gatsby-plugin-github-avatar

Build Status npm version npm total downloads

Install

yarn add @micalgenus/gatsby-plugin-github-avatar
or
npm install --save @micalgenus/gatsby-plugin-github-avatar

How to use

// gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `@micalgenus/gatsby-plugin-github-avatar`,
      options: {
        username: `micalgenus`, // Github username
        default: 12954607, // Github userid for default image
      },
    },
  ],
};

Example usage

// example.jsx

import React from 'react';
import Avatar from '@micalgenus/gatsby-plugin-github-avatar';

export class ExampleComponent extends React.Component {
  render() {
    return <Avatar />;
  }
}
0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago