@micalgenus/gatsby-plugin-github-avatar
v0.0.18
Published
[![Build Status](https://travis-ci.org/micalgenus/gatsby-plugin-github-avatar.svg?branch=master)](https://travis-ci.org/micalgenus/gatsby-plugin-github-avatar) [![npm version](https://img.shields.io/npm/v/@micalgenus/gatsby-plugin-github-avatar.svg)](http
Downloads
9
Maintainers
Readme
gatsby-plugin-github-avatar
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 />;
}
}