An extremely simple and beautiful ReplAuth Button to drop into React. Comes with prebuild light and dark theme styles you can toggle easily.
Install it from npm and include it in your project!
npm install --save replauth-component
or:
yarn add --save replauth-component
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)