UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

22 lines (21 loc) 1.05 kB
'use client'; 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 };