replauth-component
v0.0.2
Published
An extremely **simple** and **beautiful** ReplAuth Button to drop into React. Comes with prebuild light and dark theme styles you can toggle easily.
Downloads
3
Readme
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)