Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mintgate/react-mintgate

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintgate/react-mintgate

This is a widget library for React for creating and viewing token protected content.

  • 0.1.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

@mintgate/react-mintgate

This is a widget library for React for creating and viewing token protected content.

Install:

yarn add @mintgate/react-mintgate

How to Get Your Widget Token:

  1. Log into the MintGate Site: https://www.mintgate.app/login
  2. Go to https://www.mintgate.app/token_api or https://www.mintgate.app/developer and click on the Get Token Keys button.
  3. You will need to copy your Widget Token and pass the value as a key to the jwttoken parameter.

In React project:

import '@mintgate/react-mintgate/dist/lib.css'
import { TPPFormWidget} from '@mintgate/react-mintgate';

function App() {
  return (
    <div className="App">
      <TPPFormWidget jwttoken='yourwidgettoken' theme='oneofourthemes'/>
    </div>
  );
}

export default App;

Optional - You can add any of the following style themes as a value to the theme parameter:

  • aqua
  • black
  • bumblebee
  • cupcake
  • cyberpunk
  • dark
  • dracula
  • fantasy
  • forest
  • garden
  • halloween
  • light (default)
  • luxury
  • pastel
  • retro
  • synthwave
  • valentine

Example project in the repo: /examples/helloworld


Internal: to build a new NPM version

yarn build
yarn publish

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc