You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <br><b>Note:</b> Аlthough this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
40
+
*
41
+
* @type {Node[]}
42
+
* @slot
43
+
* @public
44
+
*/
45
+
text: {
46
+
type: Node,
47
+
multiple: true,
48
+
},
49
+
50
+
/**
51
+
* Defines the <code>ui5-icon</code> to be displayed in the <code>ui5-badge</code>.
52
+
*
53
+
* @type {Icon}
54
+
* @slot
55
+
* @public
56
+
*/
57
+
icon: {
58
+
type: Icon,
59
+
},
60
+
61
+
},
62
+
defaultSlot: "text",
63
+
renderer: BadgeRenderer,
64
+
};
65
+
66
+
/**
67
+
* @class
68
+
* <h3 class="comment-api-title">Overview</h3>
69
+
*
70
+
* The <code>ui5-badge</code> is a small non-interactive component which contains text information and color chosen from a list of predefined color schemes.
71
+
* It serves the purpose to attract the user attention to some piece of information (state, quantity, condition, etc.).
72
+
*
73
+
* <h3>Usage Guidelines</h3>
74
+
* <ul>
75
+
* <li>If the text is longer than the width of the component, it doesn’t wrap, it shows ellipsis.</li>
76
+
* <li>When truncated, the full text is not visible, therefore, it’s recommended to make more space for longer texts to be fully displayed.</li>
77
+
* <li>Colors are not semantic and have no visual representation in High Contrast Black (sap_belize_hcb) theme.</li>
0 commit comments