npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

thblogin

v1.0.9-beta-1

Published

Common Login For All THB development

Readme

THB-Login

The Login module for React. Initially built for use in internal projectTHB.

Latest Version 1.0.9-beta-1 🎉

React THB-Login 1.0.9-beta-1 is a complete rewrite, written in order to overCome Certain Common features in the internal projects.

Improvements include:

  • Flexible approach to data, with customisable functions
  • Extensible styling API with emotion
  • Component Injection API for complete control over the UI behaviour
  • Controllable state props and modular architecture

If you're interested in using this please contact the admin for approval, Approace THB Team

Installation and usage

The easiest way to use thbLogin is to install it from npm and build it into your app with Webpack.

npm install thblogin --save
yarn add thblogin
``

dependencies of modules reqd. . Please install this modules also

"@material-ui/core": "^3.6.2",
"aws-amplify": "1.1.7",
"aws-amplify-react": "2.1.1"

Then use it in your app:

```js
import React, { Component } from 'react';
import './App.css';
import LoginContainer from 'thblogin';

class App extends Component {


  onCompleteLoggedIn=(data)=>{
    if(data.status === 'success'){
      let token = data.token; // you will get your token here on Successful login
      // now write your code here to redirect to another route eg. Dashboard
    }else{
      let error = data.message; // error message
    }
  }

  render() {
    return (
      <div className="App">
        <LoginContainer 
          loginTitle={"THB Login DEMO"}  
          loginLogo={"https://www.thb.co.in/static/media/offering-2.888cc5cc.png"}
          onLoggedInComplete={this.onCompleteLoggedIn}/>
      </div>
    );
  }
}

export default App;

If you don't provide these props, you can set the initial value of the state they control:

  • loginTitle - set the initial Text of the Login Screen , DEFAult text is "Login"
  • loginLogo - set the initial Logo icon of the Login Screen, Default is Thb icon
  • onLoggedInComplete - to get the status of the error or success in the login Process.

License

Thb Licensed. Copyright (c) 2018. Use this under permmision of THB. To use it in your private project please ask for licence