@iress-oss/ids-mcp-server 6.0.0-alpha.1-canary-20251204032753-fe18cab → 6.0.0-alpha.1-canary-20251204040305-3639454
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/docs/components_components-alert-docs.md +1054 -0
- package/generated/docs/components_components-autocomplete-docs.md +3304 -0
- package/generated/docs/components_components-autocomplete-recipes-docs.md +98 -0
- package/generated/docs/components_components-badge-docs.md +312 -0
- package/generated/docs/components_components-button-docs.md +2339 -0
- package/generated/docs/components_components-buttongroup-docs.md +980 -0
- package/generated/docs/components_components-card-docs.md +1970 -0
- package/generated/docs/components_components-checkbox-docs.md +1083 -0
- package/generated/docs/components_components-checkboxgroup-docs.md +1597 -0
- package/generated/docs/components_components-checkboxgroup-recipes-docs.md +209 -0
- package/generated/docs/components_components-col-docs.md +755 -0
- package/generated/docs/components_components-container-docs.md +172 -0
- package/generated/docs/components_components-divider-docs.md +235 -0
- package/generated/docs/components_components-expander-docs.md +428 -0
- package/generated/docs/components_components-field-docs.md +3345 -0
- package/generated/docs/components_components-filter-docs.md +4091 -0
- package/generated/docs/components_components-hide-docs.md +450 -0
- package/generated/docs/components_components-icon-docs.md +1017 -0
- package/generated/docs/components_components-image-docs.md +168 -0
- package/generated/docs/components_components-inline-docs.md +1962 -0
- package/generated/docs/components_components-input-docs.md +1388 -0
- package/generated/docs/components_components-input-recipes-docs.md +349 -0
- package/generated/docs/components_components-inputcurrency-docs.md +636 -0
- package/generated/docs/components_components-inputcurrency-recipes-docs.md +208 -0
- package/generated/docs/components_components-introduction-docs.md +448 -0
- package/generated/docs/components_components-label-docs.md +229 -0
- package/generated/docs/components_components-link-docs.md +454 -0
- package/generated/docs/components_components-menu-docs.md +2219 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +1455 -0
- package/generated/docs/components_components-modal-docs.md +2002 -0
- package/generated/docs/components_components-panel-docs.md +342 -0
- package/generated/docs/components_components-placeholder-docs.md +98 -0
- package/generated/docs/components_components-popover-docs.md +1631 -0
- package/generated/docs/components_components-popover-recipes-docs.md +537 -0
- package/generated/docs/components_components-progress-docs.md +128 -0
- package/generated/docs/components_components-provider-docs.md +123 -0
- package/generated/docs/components_components-radio-docs.md +499 -0
- package/generated/docs/components_components-radiogroup-docs.md +1573 -0
- package/generated/docs/components_components-readonly-docs.md +277 -0
- package/generated/docs/components_components-richselect-docs.md +6101 -0
- package/generated/docs/components_components-row-docs.md +2172 -0
- package/generated/docs/components_components-select-docs.md +1110 -0
- package/generated/docs/components_components-skeleton-docs.md +467 -0
- package/generated/docs/components_components-skeleton-recipes-docs.md +110 -0
- package/generated/docs/components_components-skiplink-docs.md +220 -0
- package/generated/docs/components_components-slideout-docs.md +1910 -0
- package/generated/docs/components_components-slider-docs.md +1284 -0
- package/generated/docs/components_components-spinner-docs.md +90 -0
- package/generated/docs/components_components-stack-docs.md +730 -0
- package/generated/docs/components_components-table-docs.md +4038 -0
- package/generated/docs/components_components-tabset-docs.md +955 -0
- package/generated/docs/components_components-tabset-tab-docs.md +342 -0
- package/generated/docs/components_components-tag-docs.md +410 -0
- package/generated/docs/components_components-text-docs.md +593 -0
- package/generated/docs/components_components-toaster-docs.md +451 -0
- package/generated/docs/components_components-toggle-docs.md +513 -0
- package/generated/docs/components_components-tooltip-docs.md +564 -0
- package/generated/docs/components_components-validationmessage-docs.md +608 -0
- package/generated/docs/components_contact-us-docs.md +9 -0
- package/generated/docs/components_foundations-accessibility-docs.md +33 -0
- package/generated/docs/components_foundations-consistency-docs.md +44 -0
- package/generated/docs/components_foundations-content-docs.md +18 -0
- package/generated/docs/components_foundations-introduction-docs.md +17 -0
- package/generated/docs/components_foundations-principles-docs.md +60 -0
- package/generated/docs/components_foundations-responsive-layout-docs.md +2692 -0
- package/generated/docs/components_foundations-user-experience-docs.md +53 -0
- package/generated/docs/components_foundations-visual-design-docs.md +39 -0
- package/generated/docs/components_foundations-z-index-stacking-docs.md +288 -0
- package/generated/docs/components_frequently-asked-questions-docs.md +44 -0
- package/generated/docs/components_get-started-develop-docs.md +47 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +85 -0
- package/generated/docs/components_patterns-form-docs.md +2469 -0
- package/generated/docs/components_patterns-form-recipes-docs.md +1597 -0
- package/generated/docs/components_patterns-introduction-docs.md +31 -0
- package/generated/docs/components_patterns-loading-docs.md +1908 -0
- package/generated/docs/components_patterns-shadow-docs.md +195 -0
- package/generated/docs/components_resources-code-katas-docs.md +25 -0
- package/generated/docs/components_resources-introduction-docs.md +28 -0
- package/generated/docs/components_resources-mcp-server-docs.md +23 -0
- package/generated/docs/components_resources-migration-guides-from-v4-to-v5-docs.md +142 -0
- package/generated/docs/components_styling-props-colour-docs.md +91 -0
- package/generated/docs/components_styling-props-elevation-docs.md +69 -0
- package/generated/docs/components_styling-props-radius-docs.md +63 -0
- package/generated/docs/components_styling-props-reference-docs.md +160 -0
- package/generated/docs/components_styling-props-screen-readers-docs.md +66 -0
- package/generated/docs/components_styling-props-sizing-docs.md +217 -0
- package/generated/docs/components_styling-props-spacing-docs.md +545 -0
- package/generated/docs/components_styling-props-typography-docs.md +66 -0
- package/generated/docs/components_versions-docs.md +14 -0
- package/generated/docs/guidelines.md +3083 -0
- package/generated/docs/introduction-docs.md +37 -0
- package/generated/docs/tokens_colour-docs.md +479 -0
- package/generated/docs/tokens_elevation-docs.md +39 -0
- package/generated/docs/tokens_introduction-docs.md +150 -0
- package/generated/docs/tokens_radius-docs.md +67 -0
- package/generated/docs/tokens_spacing-docs.md +87 -0
- package/generated/docs/tokens_typography-docs.md +305 -0
- package/package.json +2 -2
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
Tooltip
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
A component that shows concise, informative text about an element when focussed upon, hovered over or on a long touch.
|
|
8
|
+
|
|
9
|
+
* * *
|
|
10
|
+
|
|
11
|
+
Updated
|
|
12
|
+
|
|
13
|
+
**Recently updated**
|
|
14
|
+
|
|
15
|
+
This component has been recently updated with new props. The props have been marked as beta. Please tell us if there are any issues.
|
|
16
|
+
|
|
17
|
+
[](./iframe.html?id=components-tooltip--default)
|
|
18
|
+
|
|
19
|
+
Hover me
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<IressTooltip tooltipText\="Hello! This is a really long tooltip to try and see if it goes behind the scrollbar"\>
|
|
24
|
+
<IressButton\>
|
|
25
|
+
Hover me </IressButton\>
|
|
26
|
+
</IressTooltip\>
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Props
|
|
31
|
+
-----
|
|
32
|
+
|
|
33
|
+
| Name | Description | Default | Control |
|
|
34
|
+
| --- | --- | --- | --- |
|
|
35
|
+
| align |
|
|
36
|
+
Sets the alignment of the popover relative to the activator element.
|
|
37
|
+
|
|
38
|
+
FloatingUIAligns
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
|
43
|
+
|
|
44
|
+
'top'
|
|
45
|
+
|
|
46
|
+
| Set object |
|
|
47
|
+
| children\* |
|
|
48
|
+
|
|
49
|
+
The element to add a tooltip to.
|
|
50
|
+
|
|
51
|
+
ReactNode
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
| \- | \- |
|
|
56
|
+
| delay |
|
|
57
|
+
|
|
58
|
+
Sets the tooltip display delay in milliseconds.
|
|
59
|
+
|
|
60
|
+
number
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
|
65
|
+
|
|
66
|
+
500
|
|
67
|
+
|
|
68
|
+
| Set number |
|
|
69
|
+
| open |
|
|
70
|
+
|
|
71
|
+
Only used for internal testing.
|
|
72
|
+
|
|
73
|
+
boolean
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
|
78
|
+
|
|
79
|
+
false
|
|
80
|
+
|
|
81
|
+
| \- |
|
|
82
|
+
| tooltipText\* |
|
|
83
|
+
|
|
84
|
+
Sets the tooltip text. Can accept a string or an array of strings - if given an array, will output each string on a new line.
|
|
85
|
+
|
|
86
|
+
union
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
| \- |
|
|
91
|
+
|
|
92
|
+
"Hello! This is a really long tooltip to try and see if it goes behind the scrollbar"
|
|
93
|
+
|
|
94
|
+
|
|
|
95
|
+
|
|
96
|
+
Usage
|
|
97
|
+
-----
|
|
98
|
+
|
|
99
|
+
The content that will be displayed in the tooltip is passed using the `tooltipText` prop.
|
|
100
|
+
|
|
101
|
+
This content can only be plain text; there is no parsing of any markup or styling. This is by design as we do not allow complex structures in a tooltip as they are meant to be concise, informative pieces of text.
|
|
102
|
+
|
|
103
|
+
Text content will wrap on to a new line if it exceeds the tooltip's maximum width. You can also manually format your content into multiple lines by passing an array of strings into the `tooltipText` prop.
|
|
104
|
+
|
|
105
|
+
[](./iframe.html?id=components-tooltip--tooltip-text)
|
|
106
|
+
|
|
107
|
+
Single line
|
|
108
|
+
|
|
109
|
+
Multi line
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
<div
|
|
114
|
+
style\={{
|
|
115
|
+
paddingTop: '30px'
|
|
116
|
+
}}
|
|
117
|
+
\>
|
|
118
|
+
<IressInline gap\="md"\>
|
|
119
|
+
<IressTooltip tooltipText\="Single line Hello! This is a really long tooltip to try and see if it goes behind the scrollbar"\>
|
|
120
|
+
<IressButton\>
|
|
121
|
+
Single line </IressButton\>
|
|
122
|
+
</IressTooltip\>
|
|
123
|
+
<IressTooltip
|
|
124
|
+
tooltipText\={\[
|
|
125
|
+
'This tooltip',
|
|
126
|
+
'has multiple lines'
|
|
127
|
+
\]}
|
|
128
|
+
\>
|
|
129
|
+
<IressButton\>
|
|
130
|
+
Multi line </IressButton\>
|
|
131
|
+
</IressTooltip\>
|
|
132
|
+
</IressInline\>
|
|
133
|
+
</div\>
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### Props
|
|
138
|
+
|
|
139
|
+
| Name | Description | Default | Control |
|
|
140
|
+
| --- | --- | --- | --- |
|
|
141
|
+
| align |
|
|
142
|
+
Sets the alignment of the popover relative to the activator element.
|
|
143
|
+
|
|
144
|
+
FloatingUIAligns
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
|
149
|
+
|
|
150
|
+
'top'
|
|
151
|
+
|
|
152
|
+
| Set object |
|
|
153
|
+
| children\* |
|
|
154
|
+
|
|
155
|
+
The element to add a tooltip to.
|
|
156
|
+
|
|
157
|
+
ReactNode
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
| \- | \- |
|
|
162
|
+
| delay |
|
|
163
|
+
|
|
164
|
+
Sets the tooltip display delay in milliseconds.
|
|
165
|
+
|
|
166
|
+
number
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
|
171
|
+
|
|
172
|
+
500
|
|
173
|
+
|
|
174
|
+
| Set number |
|
|
175
|
+
| open |
|
|
176
|
+
|
|
177
|
+
Only used for internal testing.
|
|
178
|
+
|
|
179
|
+
boolean
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
|
184
|
+
|
|
185
|
+
false
|
|
186
|
+
|
|
187
|
+
| \- |
|
|
188
|
+
| tooltipText\* |
|
|
189
|
+
|
|
190
|
+
Sets the tooltip text. Can accept a string or an array of strings - if given an array, will output each string on a new line.
|
|
191
|
+
|
|
192
|
+
union
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
| \- | Set object |
|
|
197
|
+
|
|
198
|
+
Behaviour
|
|
199
|
+
---------
|
|
200
|
+
|
|
201
|
+
The behaviour of tooltips varies according to how they're shown:
|
|
202
|
+
|
|
203
|
+
* When a pointer is moved over the activator the tooltip will be shown, and will remain visible for a short period of time after the pointer has moved away (500ms is the default time)
|
|
204
|
+
* If the activator receives keyboard focus the tooltip will be visible. The tooltip will hide immediately after the focus moves away from the activator.
|
|
205
|
+
* If the user long presses on the activator (on a touch device). The tooltip will remain visible until the user taps somewhere else on the screen
|
|
206
|
+
|
|
207
|
+
If the user activates a tooltip via a pointing device and then moves the pointer over the tooltip, it will remain on screen until the pointer is moved away. This is for accessibility purposes where a user may be using magnifying software for example.
|
|
208
|
+
|
|
209
|
+
Accessibility
|
|
210
|
+
-------------
|
|
211
|
+
|
|
212
|
+
The WCAG guidelines for content that is displayed on hover or focus can be found here: [WCAG 2.1 - 1.4.13 (AA)](https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus).
|
|
213
|
+
|
|
214
|
+
Other things to keep in mind:
|
|
215
|
+
|
|
216
|
+
* For best accessibility, you should only use tooltips on focusable items (eg. `IressButton` and `IressMenuItem`), allowing them to be seen when navigating to the tooltip activator by keyboard
|
|
217
|
+
|
|
218
|
+
**Notes:**
|
|
219
|
+
|
|
220
|
+
* If the text you wish to display is more than a handful of words then consider using an IressModal with an information button.
|
|
221
|
+
* Tooltips must not be used for help text as they are not immediately visible to the user. We suggest adding hint text to assist the user when filling out forms.
|
|
222
|
+
* Also think about placement using the align prop. The tooltip should not obscure any critical screen content. Another reason to keep them short.
|
|
223
|
+
|
|
224
|
+
Examples
|
|
225
|
+
--------
|
|
226
|
+
|
|
227
|
+
### Align
|
|
228
|
+
|
|
229
|
+
The tooltip can be aligned in one of 12 positions relative to the activator element.
|
|
230
|
+
|
|
231
|
+
The tooltip's position will change dynamically based on the amount of space available in its container window, so that it doesn't overflow the edge. For example, if the tooltip is about to scroll off the top of the screen, it will change its position to bottom. Likewise with left and right scrolling.
|
|
232
|
+
|
|
233
|
+
[](./iframe.html?id=components-tooltip--align)
|
|
234
|
+
|
|
235
|
+
Top Start
|
|
236
|
+
|
|
237
|
+
Top
|
|
238
|
+
|
|
239
|
+
Top End
|
|
240
|
+
|
|
241
|
+
Left Start
|
|
242
|
+
|
|
243
|
+
Left
|
|
244
|
+
|
|
245
|
+
Left End
|
|
246
|
+
|
|
247
|
+
Right Start
|
|
248
|
+
|
|
249
|
+
Right
|
|
250
|
+
|
|
251
|
+
Right End
|
|
252
|
+
|
|
253
|
+
Bottom Start
|
|
254
|
+
|
|
255
|
+
Bottom
|
|
256
|
+
|
|
257
|
+
Bottom End
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
<div
|
|
262
|
+
style\={{
|
|
263
|
+
padding: '80px 150px'
|
|
264
|
+
}}
|
|
265
|
+
\>
|
|
266
|
+
<IressStack gap\="md"\>
|
|
267
|
+
<IressInline
|
|
268
|
+
gap\="sm"
|
|
269
|
+
horizontalAlign\="center"
|
|
270
|
+
\>
|
|
271
|
+
<IressTooltip
|
|
272
|
+
align\="top-start"
|
|
273
|
+
tooltipText\="Hello!"
|
|
274
|
+
\>
|
|
275
|
+
<IressButton\>
|
|
276
|
+
Top Start </IressButton\>
|
|
277
|
+
</IressTooltip\>
|
|
278
|
+
<IressTooltip
|
|
279
|
+
align\="top"
|
|
280
|
+
tooltipText\="Hello!"
|
|
281
|
+
\>
|
|
282
|
+
<IressButton\>
|
|
283
|
+
Top </IressButton\>
|
|
284
|
+
</IressTooltip\>
|
|
285
|
+
<IressTooltip
|
|
286
|
+
align\="top-end"
|
|
287
|
+
tooltipText\="Hello!"
|
|
288
|
+
\>
|
|
289
|
+
<IressButton\>
|
|
290
|
+
Top End </IressButton\>
|
|
291
|
+
</IressTooltip\>
|
|
292
|
+
</IressInline\>
|
|
293
|
+
<IressInline horizontalAlign\="between"\>
|
|
294
|
+
<IressStack gap\="sm"\>
|
|
295
|
+
<IressInline horizontalAlign\="left"\>
|
|
296
|
+
<IressTooltip
|
|
297
|
+
align\="left-start"
|
|
298
|
+
tooltipText\="Hello!"
|
|
299
|
+
\>
|
|
300
|
+
<IressButton\>
|
|
301
|
+
Left Start </IressButton\>
|
|
302
|
+
</IressTooltip\>
|
|
303
|
+
</IressInline\>
|
|
304
|
+
<IressInline horizontalAlign\="left"\>
|
|
305
|
+
<IressTooltip
|
|
306
|
+
align\="left"
|
|
307
|
+
tooltipText\="Hello!"
|
|
308
|
+
\>
|
|
309
|
+
<IressButton\>
|
|
310
|
+
Left </IressButton\>
|
|
311
|
+
</IressTooltip\>
|
|
312
|
+
</IressInline\>
|
|
313
|
+
<IressInline horizontalAlign\="left"\>
|
|
314
|
+
<IressTooltip
|
|
315
|
+
align\="left-end"
|
|
316
|
+
tooltipText\="Hello!"
|
|
317
|
+
\>
|
|
318
|
+
<IressButton\>
|
|
319
|
+
Left End </IressButton\>
|
|
320
|
+
</IressTooltip\>
|
|
321
|
+
</IressInline\>
|
|
322
|
+
</IressStack\>
|
|
323
|
+
<IressStack gap\="sm"\>
|
|
324
|
+
<IressInline horizontalAlign\="right"\>
|
|
325
|
+
<IressTooltip
|
|
326
|
+
align\="right-start"
|
|
327
|
+
tooltipText\="Hello!"
|
|
328
|
+
\>
|
|
329
|
+
<IressButton\>
|
|
330
|
+
Right Start </IressButton\>
|
|
331
|
+
</IressTooltip\>
|
|
332
|
+
</IressInline\>
|
|
333
|
+
<IressInline horizontalAlign\="right"\>
|
|
334
|
+
<IressTooltip
|
|
335
|
+
align\="right"
|
|
336
|
+
tooltipText\="Hello!"
|
|
337
|
+
\>
|
|
338
|
+
<IressButton\>
|
|
339
|
+
Right </IressButton\>
|
|
340
|
+
</IressTooltip\>
|
|
341
|
+
</IressInline\>
|
|
342
|
+
<IressInline horizontalAlign\="right"\>
|
|
343
|
+
<IressTooltip
|
|
344
|
+
align\="right-end"
|
|
345
|
+
tooltipText\="Hello!"
|
|
346
|
+
\>
|
|
347
|
+
<IressButton\>
|
|
348
|
+
Right End </IressButton\>
|
|
349
|
+
</IressTooltip\>
|
|
350
|
+
</IressInline\>
|
|
351
|
+
</IressStack\>
|
|
352
|
+
</IressInline\>
|
|
353
|
+
<IressInline
|
|
354
|
+
gap\="sm"
|
|
355
|
+
horizontalAlign\="center"
|
|
356
|
+
\>
|
|
357
|
+
<IressTooltip
|
|
358
|
+
align\="bottom-start"
|
|
359
|
+
tooltipText\="Hello!"
|
|
360
|
+
\>
|
|
361
|
+
<IressButton\>
|
|
362
|
+
Bottom Start </IressButton\>
|
|
363
|
+
</IressTooltip\>
|
|
364
|
+
<IressTooltip
|
|
365
|
+
align\="bottom"
|
|
366
|
+
tooltipText\="Hello!"
|
|
367
|
+
\>
|
|
368
|
+
<IressButton\>
|
|
369
|
+
Bottom </IressButton\>
|
|
370
|
+
</IressTooltip\>
|
|
371
|
+
<IressTooltip
|
|
372
|
+
align\="bottom-end"
|
|
373
|
+
tooltipText\="Hello!"
|
|
374
|
+
\>
|
|
375
|
+
<IressButton\>
|
|
376
|
+
Bottom End </IressButton\>
|
|
377
|
+
</IressTooltip\>
|
|
378
|
+
</IressInline\>
|
|
379
|
+
</IressStack\>
|
|
380
|
+
</div\>
|
|
381
|
+
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
#### Props
|
|
385
|
+
|
|
386
|
+
| Name | Description | Default | Control |
|
|
387
|
+
| --- | --- | --- | --- |
|
|
388
|
+
| align |
|
|
389
|
+
Sets the alignment of the popover relative to the activator element.
|
|
390
|
+
|
|
391
|
+
FloatingUIAligns
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
|
396
|
+
|
|
397
|
+
'top'
|
|
398
|
+
|
|
399
|
+
| \- |
|
|
400
|
+
| children\* |
|
|
401
|
+
|
|
402
|
+
The element to add a tooltip to.
|
|
403
|
+
|
|
404
|
+
ReactNode
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
| \- | \- |
|
|
409
|
+
| delay |
|
|
410
|
+
|
|
411
|
+
Sets the tooltip display delay in milliseconds.
|
|
412
|
+
|
|
413
|
+
number
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
|
418
|
+
|
|
419
|
+
500
|
|
420
|
+
|
|
421
|
+
| Set number |
|
|
422
|
+
| open |
|
|
423
|
+
|
|
424
|
+
Only used for internal testing.
|
|
425
|
+
|
|
426
|
+
boolean
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
|
431
|
+
|
|
432
|
+
false
|
|
433
|
+
|
|
434
|
+
| \- |
|
|
435
|
+
| tooltipText\* |
|
|
436
|
+
|
|
437
|
+
Sets the tooltip text. Can accept a string or an array of strings - if given an array, will output each string on a new line.
|
|
438
|
+
|
|
439
|
+
union
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
| \- |
|
|
444
|
+
|
|
445
|
+
"Hello!"
|
|
446
|
+
|
|
447
|
+
|
|
|
448
|
+
|
|
449
|
+
### Delay
|
|
450
|
+
|
|
451
|
+
The `delay` prop requires a number that is the number of milliseconds that pass after the activator has received a `mouseEnter` event and the display of the tooltip.
|
|
452
|
+
|
|
453
|
+
[](./iframe.html?id=components-tooltip--delay)
|
|
454
|
+
|
|
455
|
+
0ms (no delay)
|
|
456
|
+
|
|
457
|
+
500ms (default)
|
|
458
|
+
|
|
459
|
+
2000ms
|
|
460
|
+
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
<div
|
|
464
|
+
style\={{
|
|
465
|
+
paddingTop: '30px'
|
|
466
|
+
}}
|
|
467
|
+
\>
|
|
468
|
+
<IressInline
|
|
469
|
+
gap\="sm"
|
|
470
|
+
horizontalAlign\="center"
|
|
471
|
+
\>
|
|
472
|
+
<IressTooltip
|
|
473
|
+
delay\={0}
|
|
474
|
+
tooltipText\="Hello!"
|
|
475
|
+
\>
|
|
476
|
+
<IressButton\>
|
|
477
|
+
0ms (no delay) </IressButton\>
|
|
478
|
+
</IressTooltip\>
|
|
479
|
+
<IressTooltip tooltipText\="Hello!"\>
|
|
480
|
+
<IressButton\>
|
|
481
|
+
500ms (default) </IressButton\>
|
|
482
|
+
</IressTooltip\>
|
|
483
|
+
<IressTooltip
|
|
484
|
+
delay\={2000}
|
|
485
|
+
tooltipText\="Hello!"
|
|
486
|
+
\>
|
|
487
|
+
<IressButton\>
|
|
488
|
+
2000ms </IressButton\>
|
|
489
|
+
</IressTooltip\>
|
|
490
|
+
</IressInline\>
|
|
491
|
+
</div\>
|
|
492
|
+
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
#### Props
|
|
496
|
+
|
|
497
|
+
| Name | Description | Default | Control |
|
|
498
|
+
| --- | --- | --- | --- |
|
|
499
|
+
| align |
|
|
500
|
+
Sets the alignment of the popover relative to the activator element.
|
|
501
|
+
|
|
502
|
+
FloatingUIAligns
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
|
507
|
+
|
|
508
|
+
'top'
|
|
509
|
+
|
|
510
|
+
| Set object |
|
|
511
|
+
| children\* |
|
|
512
|
+
|
|
513
|
+
The element to add a tooltip to.
|
|
514
|
+
|
|
515
|
+
ReactNode
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
| \- | \- |
|
|
520
|
+
| delay |
|
|
521
|
+
|
|
522
|
+
Sets the tooltip display delay in milliseconds.
|
|
523
|
+
|
|
524
|
+
number
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
|
529
|
+
|
|
530
|
+
500
|
|
531
|
+
|
|
532
|
+
| Set number |
|
|
533
|
+
| open |
|
|
534
|
+
|
|
535
|
+
Only used for internal testing.
|
|
536
|
+
|
|
537
|
+
boolean
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
|
542
|
+
|
|
543
|
+
false
|
|
544
|
+
|
|
545
|
+
| \- |
|
|
546
|
+
| tooltipText\* |
|
|
547
|
+
|
|
548
|
+
Sets the tooltip text. Can accept a string or an array of strings - if given an array, will output each string on a new line.
|
|
549
|
+
|
|
550
|
+
union
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
| \- |
|
|
555
|
+
|
|
556
|
+
"Hello!"
|
|
557
|
+
|
|
558
|
+
|
|
|
559
|
+
|
|
560
|
+
### The title attribute
|
|
561
|
+
|
|
562
|
+
The component will not make any provision for existing title HTML attributes. If one exists, it will be activated along with the tooltip, potentially overlaying it making it difficult to ascertain the information being imparted. The title could also contain different content to the tooltip increasing the chance of confusing the end user.
|
|
563
|
+
|
|
564
|
+
We suggest removing the title attribute on elements that will use tooltip.
|