Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 679 Bytes

README.md

File metadata and controls

45 lines (34 loc) · 679 Bytes

passport-widgets

Installation

yarn add passport-widgets

Usage

See example.

import React from 'react';
import { PassportScoreWidget } from 'passport-widgets';

const App = () => {
  return (
    {/* ... */}
    <PassportScoreWidget
      apiKey="API_KEY"
      address="0x..."
      scorerId="5"
    />
    {/* ... */}
  );
};

Theme

Accepts a theme prop which can be used to customize the widget's appearance. See PassportWidgetTheme. Colors are in R, G, B format.

Development

# Install dependencies
yarn
cd example
yarn

# Start the development server
yarn dev