@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
18 lines (17 loc) • 1.09 kB
JavaScript
'use client';
import { withWebComponent } from '@ui5/webcomponents-react-base';
/**
* The `UserMenu` is an SAP Fiori specific web component that is used in `ShellBar`
* and allows the user to easily see information and settings for the current user and all other logged in accounts.
*
*
*
* `import "@ui5/webcomponents-fiori/dist/UserMenuItem.js";` (for `UserMenuItem`)
*
* __Note:__ This is a UI5 Web Component! [UserMenu UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/fiori/UserMenu) | [Repository](https://github.com/UI5/webcomponents)
*
* @since [2.5.0](https://github.com/UI5/webcomponents/releases/tag/v2.5.0) of __@ui5/webcomponents-fiori__.
*/
const UserMenu = withWebComponent('ui5-user-menu', ['opener'], ['avatarInteractive', 'open', 'showEditAccounts', 'showEditButton', 'showManageAccount', 'showOtherAccounts'], ['accounts', 'footer', 'infoArea'], ['avatar-click', 'change-account', 'close', 'edit-accounts-click', 'item-click', 'manage-account-click', 'open', 'sign-out-click']);
UserMenu.displayName = 'UserMenu';
export { UserMenu };