Add custom menu items to <UserButtonĀ />
- Category
- React
- Published
With our latest release, you can now add custom menu items to <UserButton />
component.
UserButton Customization
The <UserButton />
component now supports the following customizations:
- Custom Links: Add external links to the menu using the
<UserButton.Link />
component. - Custom Actions: Define custom actions that can trigger specific behaviors within your app using the
<UserButton.Action />
component. This includes implementing custom logic with onClick handlers or opening the user profile modal to a specific page.
Here is an example of how to use our new React API for <UserButton />
customization:
For more information and implementation instructions, please refer to our documentation for <UserButton />
.