User Menu
Menus and commandsMITAuthenticated user dropdown with profile, settings, and sign-out.
bun add @otfdashkit/ui
Preview
User MenuMenus and commands
Code
@otfdashkit/uiimport { UserMenu } from '@otfdashkit/ui'
export function Example() {
return (
<div className="p-4"><UserMenu /></div>
)
}
Free with the SDK. This block ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the UserMenu source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | ||
| string | 'jane@acme.com' | ||
| initials | string | 'JD' | |
| name | string | 'Jane Doe' | |
| onBilling | () => void | ||
| onProfile | () => void | ||
| onSettings | () => void | ||
| onSignOut | () => void |