@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
23 lines (22 loc) • 1.09 kB
JavaScript
'use client';
import '@ui5/webcomponents/dist/Avatar.js';
import { withWebComponent } from '../../internal/withWebComponent.js';
/**
* An image-like component that has different display options for representing images and icons
* in different shapes and sizes, depending on the use case.
*
* The shape can be circular or square. There are several predefined sizes, as well as an option to
* set a custom size.
*
* ### Keyboard Handling
*
* - [Space] / [Enter] or [Return] - Fires the `click` event if the `interactive` property is set to true.
* - [Shift] - If [Space] is pressed, pressing [Shift] releases the component without triggering the click event.
*
*
*
* __Note__: This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)
*/
const Avatar = withWebComponent('ui5-avatar', ['accessibilityAttributes', 'accessibleName', 'colorScheme', 'fallbackIcon', 'icon', 'initials', 'shape', 'size'], ['disabled', 'interactive'], ['badge'], []);
Avatar.displayName = 'Avatar';
export { Avatar };