Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 843 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 843 Bytes

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)