0.0.2 • Published 4 years ago
replauth-component v0.0.2
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-componentor:
yarn add --save replauth-componentUsage
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)