-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JavaScript example for custom menu items in <UserButton /> #1650
Add JavaScript example for custom menu items in <UserButton /> #1650
Conversation
Hey, here’s your docs preview: https://clerk.com/docs/pr/1650 |
docs/customization/user-button.mdx
Outdated
|
||
To add custom menu items to the `<UserButton />` component using the [JavaScript SDK](/docs/references/javascript/overview), you can pass the `customMenuItems` property to the `mountUserButton` method, as shown in the following example: | ||
|
||
<CodeBlockTabs options={['NPM module', '<script>']}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an example for adding a custom link to the userbutton, but where is the example for adding a custom action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexisintech Added
a262883
to
01db99d
Compare
Important
🔎 Previews:
Explanation:
This PR: