Gitcoin SDK
Dynamic Widget
Example
Step 1: Include the JavaScript SDK on your page once, ideally right after the opening body tag.
Step 2: Place this code wherever you want the plugin to appear on your page.
Autoloading
Importing the SDK into your application will attempt to autoload the widget by searching for '.gitcoin-widget' selectors
;
or
;
Programmatically
You can also use the Widget programmatically.
;
or
const Widget = ;
Widget can be instantiated by passing a selector option, or an element reference.
limit: 10 orderBy: '-expires_date' organization: 'MetaMask' repository: 'metamask-extension' selector: '.gitcoin-widget';