This is a ReScript library that generates React components for social login buttons used in all dictyBase web applications.
import { GoogleButton, LinkedInButton, OrcidButton } from "dicty-components-login"
This component expects the following props to be passed:
text
: text to display inside buttonhandleClick
: function called when the user clicks a buttonFor example, <GoogleButton handleClick={(e) => console.log(e)} text="Login with Google" />
There is a demo app inside the example
that shows how to use this library in a create-react-app
application.
Run yarn start
to start the demo.
If there are issues running the demo app, check its readme for possible solutions.
develop
branch of this repository.yarn
to install.feature/foo-plugin
)yarn bundle
to generate updated code and esbuild output.develop
.For active local development, run yarn start
to start the demo app, then run yarn bundle
any time you make changes to see them in realtime.
If you are ready to cut a new release, you can then merge into master
. This
will trigger a GitHub Action that uses semantic-release
to create a new tag
automatically.
Thanks goes to these wonderful people (emoji key):
Siddhartha Basu π π» π π π§ |
This project follows the all-contributors specification. Contributions of any kind welcome!