Openfort Kit Button
All your users need to login with Openfort
To use the Openfort Kit Button, you will need to use the OpenfortKitButton
component. This component will render a button that will open the Openfort login screen when clicked.
_10import { OpenfortKitButton } from '@openfort/openfort-kit';_10_10function App() {_10 return (_10 <div>_10 <OpenfortKitButton />_10 </div>_10 );_10};
This button will use the default configuration of the Openfort Kit, but you can customize the theme properties of the button.
There are other customization properties:
showAvatar
: Show the avatar of the usershowBalance
: Show the balance of the userlabel
: The label of the button when the user is not connected
The OpenfortKitButton
component also provides a onClick
callback that will be called when the user clicks the button.