0.0.2 • Published 3 years ago

replauth-component v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

replauth-component

An extremely simple and beautiful ReplAuth Button to drop into React. Comes with prebuild light and dark theme styles you can toggle easily.

Installation

Install it from npm and include it in your project!

npm install --save replauth-component

or:

yarn add --save replauth-component

Usage

Drop the component into your React project!

const customCallback = () => {
  window.reload();
}

class App extends React.Component {
  render() {
    return (
      <ReplAuthButton 
        theme="" { /* default: "dark" */ }
        message="" { /* default: "Auth with Replit" */ }
        callback={customCallback} { /* default: none */ }
      />
    )
  }
}

See the demo here. (It may take time to load, be patient for me :D)