@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
24 lines (23 loc) • 1.07 kB
JavaScript
'use client';
import '@ui5/webcomponents/dist/Tag.js';
import { withWebComponent } from '../../internal/withWebComponent.js';
/**
* The `Tag` is a component which serves
* the purpose to attract the user attention to some piece
* of information (state, quantity, condition, etc.).
* It can contain icon and text information, and its design can be chosen from specific design types.
*
* ### Usage Guidelines
*
* - If the text is longer than the width of the component, it can wrap, or it can show ellipsis, depending on the `wrappingType` property.
* - Colors can be semantic or not semantic.
*
*
*
* __Note__: This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)
*
* @since [2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of __@ui5/webcomponents__.
*/
const Tag = withWebComponent('ui5-tag', ['colorScheme', 'design', 'size', 'wrappingType'], ['hideStateIcon', 'interactive'], ['icon'], ['click']);
Tag.displayName = 'Tag';
export { Tag };