Management API Reference

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.


_10
import { OpenfortKitButton } from '@openfort/openfort-kit';
_10
_10
function 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 user
  • showBalance: Show the balance of the user
  • label: 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.