yarn add passport-widgets
See example.
import React from 'react';
import { PassportScoreWidget } from 'passport-widgets';
const App = () => {
return (
{/* ... */}
<PassportScoreWidget
apiKey="API_KEY"
address="0x..."
scorerId="5"
/>
{/* ... */}
);
};
Accepts a theme
prop which can be used to customize the widget's appearance.
See PassportWidgetTheme. Colors are in R, G, B
format.
# Install dependencies
yarn
cd example
yarn
# Start the development server
yarn dev