@iress-oss/ids-mcp-server 5.15.0 → 5.20.1

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.
Files changed (132) hide show
  1. package/generated/docs/components_components-alert-docs.md +492 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3485 -0
  3. package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +32 -14
  4. package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
  5. package/generated/docs/components_components-button-docs.md +2078 -0
  6. package/generated/docs/components_components-button-recipes-docs.md +37 -0
  7. package/generated/docs/components_components-buttongroup-docs.md +1045 -0
  8. package/generated/docs/components_components-card-docs.md +2276 -0
  9. package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +131 -14
  10. package/generated/docs/components_components-checkbox-docs.md +1054 -0
  11. package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1000 -81
  12. package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +101 -11
  13. package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
  14. package/generated/docs/components_components-combobox-docs.md +3767 -0
  15. package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
  16. package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
  17. package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +264 -33
  18. package/generated/docs/{components-field-docs.md → components_components-field-docs.md} +814 -120
  19. package/generated/docs/components_components-filter-docs.md +4080 -0
  20. package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1515 -353
  21. package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +170 -54
  22. package/generated/docs/components_components-hide-docs.md +293 -0
  23. package/generated/docs/components_components-icon-docs.md +1337 -0
  24. package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
  25. package/generated/docs/components_components-input-docs.md +1468 -0
  26. package/generated/docs/components_components-input-recipes-docs.md +367 -0
  27. package/generated/docs/components_components-inputcurrency-docs.md +432 -0
  28. package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +110 -17
  29. package/generated/docs/components_components-label-docs.md +323 -0
  30. package/generated/docs/components_components-menu-docs.md +2345 -0
  31. package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
  32. package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1625 -232
  33. package/generated/docs/components_components-navbar-docs.md +1847 -0
  34. package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +697 -39
  35. package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
  36. package/generated/docs/components_components-placeholder-docs.md +92 -0
  37. package/generated/docs/components_components-popover-docs.md +1641 -0
  38. package/generated/docs/{components-popover-recipes-docs.md → components_components-popover-recipes-docs.md} +347 -17
  39. package/generated/docs/components_components-progress-docs.md +115 -0
  40. package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +41 -32
  41. package/generated/docs/components_components-radio-docs.md +491 -0
  42. package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +943 -75
  43. package/generated/docs/components_components-readonly-docs.md +263 -0
  44. package/generated/docs/components_components-richselect-docs.md +6497 -0
  45. package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
  46. package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
  47. package/generated/docs/components_components-skeleton-docs.md +480 -0
  48. package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +50 -10
  49. package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
  50. package/generated/docs/components_components-slideout-docs.md +2262 -0
  51. package/generated/docs/components_components-slider-docs.md +1276 -0
  52. package/generated/docs/components_components-spinner-docs.md +82 -0
  53. package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
  54. package/generated/docs/components_components-table-docs.md +3651 -0
  55. package/generated/docs/components_components-tabset-docs.md +772 -0
  56. package/generated/docs/components_components-tabset-tab-docs.md +262 -0
  57. package/generated/docs/components_components-tag-docs.md +259 -0
  58. package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
  59. package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +181 -79
  60. package/generated/docs/components_components-toaster-toast-docs.md +634 -0
  61. package/generated/docs/components_components-toggle-docs.md +461 -0
  62. package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
  63. package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
  64. package/generated/docs/components_contact-us-docs.md +12 -0
  65. package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
  66. package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
  67. package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
  68. package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
  69. package/generated/docs/components_foundations-introduction-docs.md +15 -0
  70. package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
  71. package/generated/docs/components_foundations-typography-docs.md +608 -0
  72. package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
  73. package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
  74. package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
  75. package/generated/docs/components_get-started-develop-docs.md +84 -0
  76. package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
  77. package/generated/docs/components_introduction-docs.md +15 -0
  78. package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +711 -143
  79. package/generated/docs/components_resources-changelog-docs.md +4 -0
  80. package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
  81. package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
  82. package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
  83. package/generated/docs/guidelines.md +484 -200
  84. package/generated/docs/introduction-docs.md +19 -30
  85. package/package.json +41 -45
  86. package/generated/docs/components-alert-docs.md +0 -130
  87. package/generated/docs/components-autocomplete-docs.md +0 -754
  88. package/generated/docs/components-button-docs.md +0 -362
  89. package/generated/docs/components-button-recipes-docs.md +0 -76
  90. package/generated/docs/components-buttongroup-docs.md +0 -310
  91. package/generated/docs/components-card-docs.md +0 -494
  92. package/generated/docs/components-checkbox-docs.md +0 -193
  93. package/generated/docs/components-combobox-docs.md +0 -1016
  94. package/generated/docs/components-filter-docs.md +0 -1109
  95. package/generated/docs/components-hide-docs.md +0 -265
  96. package/generated/docs/components-icon-docs.md +0 -553
  97. package/generated/docs/components-input-docs.md +0 -335
  98. package/generated/docs/components-input-recipes-docs.md +0 -140
  99. package/generated/docs/components-inputcurrency-docs.md +0 -157
  100. package/generated/docs/components-label-docs.md +0 -135
  101. package/generated/docs/components-menu-docs.md +0 -704
  102. package/generated/docs/components-menu-menuitem-docs.md +0 -193
  103. package/generated/docs/components-navbar-docs.md +0 -291
  104. package/generated/docs/components-placeholder-docs.md +0 -27
  105. package/generated/docs/components-popover-docs.md +0 -464
  106. package/generated/docs/components-progress-docs.md +0 -104
  107. package/generated/docs/components-radio-docs.md +0 -107
  108. package/generated/docs/components-readonly-docs.md +0 -89
  109. package/generated/docs/components-richselect-docs.md +0 -2433
  110. package/generated/docs/components-skeleton-docs.md +0 -214
  111. package/generated/docs/components-slideout-docs.md +0 -538
  112. package/generated/docs/components-slider-docs.md +0 -346
  113. package/generated/docs/components-spinner-docs.md +0 -59
  114. package/generated/docs/components-table-ag-grid-docs.md +0 -1074
  115. package/generated/docs/components-table-docs.md +0 -1305
  116. package/generated/docs/components-tabset-docs.md +0 -341
  117. package/generated/docs/components-tabset-tab-docs.md +0 -86
  118. package/generated/docs/components-tag-docs.md +0 -115
  119. package/generated/docs/components-toaster-toast-docs.md +0 -157
  120. package/generated/docs/components-toggle-docs.md +0 -158
  121. package/generated/docs/contact-us-docs.md +0 -27
  122. package/generated/docs/extensions-editor-docs.md +0 -288
  123. package/generated/docs/extensions-editor-recipes-docs.md +0 -39
  124. package/generated/docs/foundations-introduction-docs.md +0 -17
  125. package/generated/docs/foundations-typography-docs.md +0 -191
  126. package/generated/docs/get-started-develop-docs.md +0 -209
  127. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  128. package/generated/docs/resources-changelog-docs.md +0 -6
  129. package/generated/docs/themes-available-themes-docs.md +0 -66
  130. package/generated/docs/themes-introduction-docs.md +0 -121
  131. package/generated/docs/themes-tokens-docs.md +0 -1200
  132. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -0,0 +1,2078 @@
1
+ Button
2
+ ======
3
+
4
+ Overview
5
+ --------
6
+
7
+ A button is a clickable item used to perform an action.
8
+
9
+ [](./iframe.html?id=components-button--default)
10
+
11
+ Button
12
+
13
+ ```
14
+
15
+ <IressButton\>
16
+ Button
17
+ </IressButton\>
18
+
19
+ ```
20
+
21
+ Props
22
+ -----
23
+
24
+ | Name | Description | Default | Control |
25
+ | --- | --- | --- | --- |
26
+ | append |
27
+ Content for the append slot.
28
+
29
+ ReactNode
30
+
31
+
32
+
33
+ | \- | Set object |
34
+ | attrs |
35
+
36
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
37
+
38
+ Record<string, string | boolean>
39
+
40
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
41
+
42
+ | \- | Set object |
43
+ | children |
44
+
45
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
46
+
47
+ ReactNode
48
+
49
+
50
+
51
+ | \- |
52
+
53
+ "Button"
54
+
55
+ |
56
+ | download |
57
+
58
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
59
+
60
+ boolean
61
+
62
+
63
+
64
+ | \- | Set boolean |
65
+ | fluid |
66
+
67
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
68
+
69
+ union
70
+
71
+
72
+
73
+ |
74
+
75
+ false
76
+
77
+ | Set object |
78
+ | href |
79
+
80
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
81
+
82
+ string
83
+
84
+
85
+
86
+ | \- | Set string |
87
+ | loading |
88
+
89
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
90
+
91
+ union
92
+
93
+
94
+
95
+ |
96
+
97
+ false
98
+
99
+ | Set object |
100
+ | mode |
101
+
102
+ Style of the button.
103
+
104
+ union
105
+
106
+
107
+
108
+ |
109
+
110
+ 'secondary'
111
+
112
+ | Set object |
113
+ | noWrap |
114
+
115
+ Prevents text wrapping if set to true.
116
+
117
+ boolean
118
+
119
+
120
+
121
+ |
122
+
123
+ false
124
+
125
+ | Set boolean |
126
+ | prepend |
127
+
128
+ Content for the prepend slot.
129
+
130
+ ReactNode
131
+
132
+
133
+
134
+ | \- | Set object |
135
+ | rel |
136
+
137
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
138
+
139
+ string
140
+
141
+
142
+
143
+ | \- | Set string |
144
+ | target |
145
+
146
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
147
+
148
+ string
149
+
150
+
151
+
152
+ | \- | Set string |
153
+ | type |
154
+
155
+ The type of the button.
156
+
157
+ union
158
+
159
+
160
+
161
+ |
162
+
163
+ 'button'
164
+
165
+ | Set object |
166
+ | value |
167
+
168
+ The value of the button, when used in `IressButtonGroup`.
169
+
170
+ FormControlValue
171
+
172
+
173
+
174
+ | \- | Set object |
175
+
176
+ Examples
177
+ --------
178
+
179
+ ### Modes
180
+
181
+ The `mode` prop controls the visual appearance and priority of the button.
182
+
183
+ * **Primary:** Use for the main call to action. Limit to one per view.
184
+ * **Secondary:** Use for secondary calls to action.
185
+ * **Tertiary:** Use when you need extra affordance between your secondary actions.
186
+ * **Link:** Use when you need a button to appear like a link.
187
+ * **Danger:** Use for added affordance on destructive actions, such as deleting data.
188
+ * **Positive:** Use for buy/purchase actions.
189
+ * **Negative:** Use for sell actions.
190
+
191
+ **Note:** Avoid setting `mode` to `link` when the only child of the button is an icon, as icons inside link buttons do not have an underline, and will have no visual indication that they are clickable.
192
+
193
+ [](./iframe.html?id=components-button--mode)
194
+
195
+ Primary buttonSecondary buttonTertiary buttonLink buttonDanger buttonPositive buttonNegative button
196
+
197
+ ```
198
+
199
+ <div
200
+ className\="iress-u-inline iress--gutter--md"
201
+ style\={{
202
+ rowGap: 'var(--iress-g-spacing-md'
203
+ }}
204
+ \>
205
+ <IressButton mode\="primary"\>
206
+ Primary button </IressButton\>
207
+ <IressButton mode\="secondary"\>
208
+ Secondary button </IressButton\>
209
+ <IressButton mode\="tertiary"\>
210
+ Tertiary button </IressButton\>
211
+ <IressButton mode\="link"\>
212
+ Link button </IressButton\>
213
+ <IressButton mode\="danger"\>
214
+ Danger button </IressButton\>
215
+ <IressButton mode\="positive"\>
216
+ Positive button </IressButton\>
217
+ <IressButton mode\="negative"\>
218
+ Negative button </IressButton\>
219
+ </div\>
220
+
221
+ ```
222
+
223
+ #### Props
224
+
225
+ | Name | Description | Default | Control |
226
+ | --- | --- | --- | --- |
227
+ | append |
228
+ Content for the append slot.
229
+
230
+ ReactNode
231
+
232
+
233
+
234
+ | \- | Set object |
235
+ | attrs |
236
+
237
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
238
+
239
+ Record<string, string | boolean>
240
+
241
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
242
+
243
+ | \- | Set object |
244
+ | children |
245
+
246
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
247
+
248
+ ReactNode
249
+
250
+
251
+
252
+ | \- |
253
+
254
+ ""
255
+
256
+ |
257
+ | download |
258
+
259
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
260
+
261
+ boolean
262
+
263
+
264
+
265
+ | \- | Set boolean |
266
+ | fluid |
267
+
268
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
269
+
270
+ union
271
+
272
+
273
+
274
+ |
275
+
276
+ false
277
+
278
+ | Set object |
279
+ | href |
280
+
281
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
282
+
283
+ string
284
+
285
+
286
+
287
+ | \- | Set string |
288
+ | loading |
289
+
290
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
291
+
292
+ union
293
+
294
+
295
+
296
+ |
297
+
298
+ false
299
+
300
+ | Set object |
301
+ | mode |
302
+
303
+ Style of the button.
304
+
305
+ union
306
+
307
+
308
+
309
+ |
310
+
311
+ 'secondary'
312
+
313
+ | \- |
314
+ | noWrap |
315
+
316
+ Prevents text wrapping if set to true.
317
+
318
+ boolean
319
+
320
+
321
+
322
+ |
323
+
324
+ false
325
+
326
+ | Set boolean |
327
+ | prepend |
328
+
329
+ Content for the prepend slot.
330
+
331
+ ReactNode
332
+
333
+
334
+
335
+ | \- | Set object |
336
+ | rel |
337
+
338
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
339
+
340
+ string
341
+
342
+
343
+
344
+ | \- | Set string |
345
+ | target |
346
+
347
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
348
+
349
+ string
350
+
351
+
352
+
353
+ | \- | Set string |
354
+ | type |
355
+
356
+ The type of the button.
357
+
358
+ union
359
+
360
+
361
+
362
+ |
363
+
364
+ 'button'
365
+
366
+ | Set object |
367
+ | value |
368
+
369
+ The value of the button, when used in `IressButtonGroup`.
370
+
371
+ FormControlValue
372
+
373
+
374
+
375
+ | \- | Set object |
376
+
377
+ ### Types
378
+
379
+ The `type` property controls the behaviour of the button. It defaults to `button`, which is the best option for most situations, but can also be set to `submit` or `reset`. `submit` should be used for buttons that submit forms, and `reset` should be used if the button clears form data and resets the form to its original state.
380
+
381
+ **Please note:** this differs from a standard HTML button element, where the `type` defaults to submit.
382
+
383
+ [](./iframe.html?id=components-button--types)
384
+
385
+ Button buttonReset buttonSubmit button
386
+
387
+ ```
388
+
389
+ <div className\="iress-u-inline iress--gutter--md"\>
390
+ <IressButton type\="button"\>
391
+ Button button </IressButton\>
392
+ <IressButton type\="reset"\>
393
+ Reset button </IressButton\>
394
+ <IressButton type\="submit"\>
395
+ Submit button </IressButton\>
396
+ </div\>
397
+
398
+ ```
399
+
400
+ #### Props
401
+
402
+ | Name | Description | Default | Control |
403
+ | --- | --- | --- | --- |
404
+ | append |
405
+ Content for the append slot.
406
+
407
+ ReactNode
408
+
409
+
410
+
411
+ | \- | Set object |
412
+ | attrs |
413
+
414
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
415
+
416
+ Record<string, string | boolean>
417
+
418
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
419
+
420
+ | \- | Set object |
421
+ | children |
422
+
423
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
424
+
425
+ ReactNode
426
+
427
+
428
+
429
+ | \- |
430
+
431
+ ""
432
+
433
+ |
434
+ | download |
435
+
436
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
437
+
438
+ boolean
439
+
440
+
441
+
442
+ | \- | Set boolean |
443
+ | fluid |
444
+
445
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
446
+
447
+ union
448
+
449
+
450
+
451
+ |
452
+
453
+ false
454
+
455
+ | Set object |
456
+ | href |
457
+
458
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
459
+
460
+ string
461
+
462
+
463
+
464
+ | \- | Set string |
465
+ | loading |
466
+
467
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
468
+
469
+ union
470
+
471
+
472
+
473
+ |
474
+
475
+ false
476
+
477
+ | Set object |
478
+ | mode |
479
+
480
+ Style of the button.
481
+
482
+ union
483
+
484
+
485
+
486
+ |
487
+
488
+ 'secondary'
489
+
490
+ | Set object |
491
+ | noWrap |
492
+
493
+ Prevents text wrapping if set to true.
494
+
495
+ boolean
496
+
497
+
498
+
499
+ |
500
+
501
+ false
502
+
503
+ | Set boolean |
504
+ | prepend |
505
+
506
+ Content for the prepend slot.
507
+
508
+ ReactNode
509
+
510
+
511
+
512
+ | \- | Set object |
513
+ | rel |
514
+
515
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
516
+
517
+ string
518
+
519
+
520
+
521
+ | \- | Set string |
522
+ | target |
523
+
524
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
525
+
526
+ string
527
+
528
+
529
+
530
+ | \- | Set string |
531
+ | type |
532
+
533
+ The type of the button.
534
+
535
+ union
536
+
537
+
538
+
539
+ |
540
+
541
+ 'button'
542
+
543
+ | \- |
544
+ | value |
545
+
546
+ The value of the button, when used in `IressButtonGroup`.
547
+
548
+ FormControlValue
549
+
550
+
551
+
552
+ | \- | Set object |
553
+
554
+ ### Loading
555
+
556
+ Loading buttons give the user an indication something is happening (eg. a form submission or extra content being loaded) after they have been triggered.
557
+
558
+ The loading state can be activated by setting the `loading` prop to `true` and providing some `loadingText` for screenreaders to announce when in loading state (which defaults to Loading...).
559
+
560
+ When the loading state is activated, any click events on the button are disabled.
561
+
562
+ [](./iframe.html?id=components-button--loading)
563
+
564
+ Button text
565
+
566
+ ```
567
+
568
+ <div className\="iress-u-inline iress--gutter--md"\>
569
+ <IressButton loading\>
570
+ Button text </IressButton\>
571
+ <IressButton loading />
572
+ </div\>
573
+
574
+ ```
575
+
576
+ #### Props
577
+
578
+ | Name | Description | Default | Control |
579
+ | --- | --- | --- | --- |
580
+ | append |
581
+ Content for the append slot.
582
+
583
+ ReactNode
584
+
585
+
586
+
587
+ | \- | Set object |
588
+ | attrs |
589
+
590
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
591
+
592
+ Record<string, string | boolean>
593
+
594
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
595
+
596
+ | \- | Set object |
597
+ | children |
598
+
599
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
600
+
601
+ ReactNode
602
+
603
+
604
+
605
+ | \- |
606
+
607
+ "Button text"
608
+
609
+ |
610
+ | download |
611
+
612
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
613
+
614
+ boolean
615
+
616
+
617
+
618
+ | \- | Set boolean |
619
+ | fluid |
620
+
621
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
622
+
623
+ union
624
+
625
+
626
+
627
+ |
628
+
629
+ false
630
+
631
+ | Set object |
632
+ | href |
633
+
634
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
635
+
636
+ string
637
+
638
+
639
+
640
+ | \- | Set string |
641
+ | loading |
642
+
643
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
644
+
645
+ union
646
+
647
+
648
+
649
+ |
650
+
651
+ false
652
+
653
+ |
654
+
655
+ true
656
+
657
+ |
658
+ | mode |
659
+
660
+ Style of the button.
661
+
662
+ union
663
+
664
+
665
+
666
+ |
667
+
668
+ 'secondary'
669
+
670
+ | Set object |
671
+ | noWrap |
672
+
673
+ Prevents text wrapping if set to true.
674
+
675
+ boolean
676
+
677
+
678
+
679
+ |
680
+
681
+ false
682
+
683
+ | Set boolean |
684
+ | prepend |
685
+
686
+ Content for the prepend slot.
687
+
688
+ ReactNode
689
+
690
+
691
+
692
+ | \- | Set object |
693
+ | rel |
694
+
695
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
696
+
697
+ string
698
+
699
+
700
+
701
+ | \- | Set string |
702
+ | target |
703
+
704
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
705
+
706
+ string
707
+
708
+
709
+
710
+ | \- | Set string |
711
+ | type |
712
+
713
+ The type of the button.
714
+
715
+ union
716
+
717
+
718
+
719
+ |
720
+
721
+ 'button'
722
+
723
+ | Set object |
724
+ | value |
725
+
726
+ The value of the button, when used in `IressButtonGroup`.
727
+
728
+ FormControlValue
729
+
730
+
731
+
732
+ | \- | Set object |
733
+
734
+ ### Buttons as links
735
+
736
+ The `href` prop allows you to create a link that looks like a button. When set, the component will render an HTML anchor element instead of an HTML button element. This can be useful when you want to increase the target area and visual weight of a link, without changing the markup.
737
+
738
+ A good example of this is the Next and Previous links in a wizard layout. These should be HTML links (to tells the user that navigation will occur when clicked) but styling them as buttons makes them more prominent.
739
+
740
+ You can also use the link specific props `target` and `rel`.
741
+
742
+ If you need to use custom routing, take a look at the custom route slot documentation below.
743
+
744
+ [](./iframe.html?id=components-button--buttons-as-links)
745
+
746
+ [This is a link (anchor tag)](https://www.iress.com/)
747
+
748
+ ```
749
+
750
+ <IressButton
751
+ href\="https://www.iress.com/"
752
+ rel\="opener noreferrer"
753
+ target\="\_blank"
754
+ \>
755
+ This is a link (anchor tag)
756
+ </IressButton\>
757
+
758
+ ```
759
+
760
+ #### Props
761
+
762
+ | Name | Description | Default | Control |
763
+ | --- | --- | --- | --- |
764
+ | append |
765
+ Content for the append slot.
766
+
767
+ ReactNode
768
+
769
+
770
+
771
+ | \- | Set object |
772
+ | attrs |
773
+
774
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
775
+
776
+ Record<string, string | boolean>
777
+
778
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
779
+
780
+ | \- | Set object |
781
+ | children |
782
+
783
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
784
+
785
+ ReactNode
786
+
787
+
788
+
789
+ | \- |
790
+
791
+ "This is a link (anchor tag)"
792
+
793
+ |
794
+ | download |
795
+
796
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
797
+
798
+ boolean
799
+
800
+
801
+
802
+ | \- | Set boolean |
803
+ | fluid |
804
+
805
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
806
+
807
+ union
808
+
809
+
810
+
811
+ |
812
+
813
+ false
814
+
815
+ | Set object |
816
+ | href |
817
+
818
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
819
+
820
+ string
821
+
822
+
823
+
824
+ | \- | https://www.iress.com/ |
825
+ | loading |
826
+
827
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
828
+
829
+ union
830
+
831
+
832
+
833
+ |
834
+
835
+ false
836
+
837
+ | Set object |
838
+ | mode |
839
+
840
+ Style of the button.
841
+
842
+ union
843
+
844
+
845
+
846
+ |
847
+
848
+ 'secondary'
849
+
850
+ | Set object |
851
+ | noWrap |
852
+
853
+ Prevents text wrapping if set to true.
854
+
855
+ boolean
856
+
857
+
858
+
859
+ |
860
+
861
+ false
862
+
863
+ | Set boolean |
864
+ | prepend |
865
+
866
+ Content for the prepend slot.
867
+
868
+ ReactNode
869
+
870
+
871
+
872
+ | \- | Set object |
873
+ | rel |
874
+
875
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
876
+
877
+ string
878
+
879
+
880
+
881
+ | \- | \- |
882
+ | target |
883
+
884
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
885
+
886
+ string
887
+
888
+
889
+
890
+ | \- | \- |
891
+ | type |
892
+
893
+ The type of the button.
894
+
895
+ union
896
+
897
+
898
+
899
+ |
900
+
901
+ 'button'
902
+
903
+ | Set object |
904
+ | value |
905
+
906
+ The value of the button, when used in `IressButtonGroup`.
907
+
908
+ FormControlValue
909
+
910
+
911
+
912
+ | \- | Set object |
913
+
914
+ ### Delete confirmation
915
+
916
+ Make sure that the user understands the consequences of clicking the button
917
+ ---------------------------------------------------------------------------
918
+
919
+ You may want to add a confirmation step to prevent accidental data loss if the action is irreversible.
920
+
921
+ The confirmation step should be a modal with a simple message, as with the example below. Use a delete button for the modal's primary call to action, and use a secondary button for the cancel action.
922
+
923
+ If you're using a heading, ensure that it has an appropriate heading level to match the document structure. You should use a danger variant of the `IressText` element, with the element prop set to the appropriate heading level.
924
+
925
+ [](./iframe.html?id=components-button--delete-confirmation)
926
+
927
+ Delete button with confirm
928
+
929
+ ```
930
+
931
+ <IressButton
932
+ mode\="danger"
933
+ onClick\={() \=> {}}
934
+ \>
935
+ Delete button with confirm
936
+ </IressButton\>
937
+
938
+ ```
939
+
940
+ #### Props
941
+
942
+ | Name | Description | Default | Control |
943
+ | --- | --- | --- | --- |
944
+ | append |
945
+ Content for the append slot.
946
+
947
+ ReactNode
948
+
949
+
950
+
951
+ | \- | Set object |
952
+ | attrs |
953
+
954
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
955
+
956
+ Record<string, string | boolean>
957
+
958
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
959
+
960
+ | \- | Set object |
961
+ | children |
962
+
963
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
964
+
965
+ ReactNode
966
+
967
+
968
+
969
+ | \- |
970
+
971
+ "Delete button with confirm"
972
+
973
+ |
974
+ | download |
975
+
976
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
977
+
978
+ boolean
979
+
980
+
981
+
982
+ | \- | Set boolean |
983
+ | fluid |
984
+
985
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
986
+
987
+ union
988
+
989
+
990
+
991
+ |
992
+
993
+ false
994
+
995
+ | Set object |
996
+ | href |
997
+
998
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
999
+
1000
+ string
1001
+
1002
+
1003
+
1004
+ | \- | Set string |
1005
+ | loading |
1006
+
1007
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
1008
+
1009
+ union
1010
+
1011
+
1012
+
1013
+ |
1014
+
1015
+ false
1016
+
1017
+ | Set object |
1018
+ | mode |
1019
+
1020
+ Style of the button.
1021
+
1022
+ union
1023
+
1024
+
1025
+
1026
+ |
1027
+
1028
+ 'secondary'
1029
+
1030
+ |
1031
+
1032
+ "danger"
1033
+
1034
+ |
1035
+ | noWrap |
1036
+
1037
+ Prevents text wrapping if set to true.
1038
+
1039
+ boolean
1040
+
1041
+
1042
+
1043
+ |
1044
+
1045
+ false
1046
+
1047
+ | Set boolean |
1048
+ | onClick |
1049
+
1050
+ function
1051
+
1052
+
1053
+
1054
+ | \- | \- |
1055
+ | prepend |
1056
+
1057
+ Content for the prepend slot.
1058
+
1059
+ ReactNode
1060
+
1061
+
1062
+
1063
+ | \- | Set object |
1064
+ | rel |
1065
+
1066
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
1067
+
1068
+ string
1069
+
1070
+
1071
+
1072
+ | \- | Set string |
1073
+ | target |
1074
+
1075
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
1076
+
1077
+ string
1078
+
1079
+
1080
+
1081
+ | \- | Set string |
1082
+ | type |
1083
+
1084
+ The type of the button.
1085
+
1086
+ union
1087
+
1088
+
1089
+
1090
+ |
1091
+
1092
+ 'button'
1093
+
1094
+ | Set object |
1095
+ | value |
1096
+
1097
+ The value of the button, when used in `IressButtonGroup`.
1098
+
1099
+ FormControlValue
1100
+
1101
+
1102
+
1103
+ | \- | Set object |
1104
+
1105
+ ### Fluid
1106
+
1107
+ If the `fluid` prop is set to true, the button will expand to be 100% of the width of its container.
1108
+
1109
+ The `fluid` prop can also be set to a breakpoint size, which means the button will be fluid up until its breakpoint is passed.
1110
+
1111
+ [](./iframe.html?id=components-button--fluid)
1112
+
1113
+ Please resize your screen to see how the fluid value changes. Current breakpoint: **xl** (1200px and above).
1114
+
1115
+ Fluid: trueFluid: xsFluid: smFluid: mdFluid: lgFluid: xlFluid: xxl
1116
+
1117
+ ```
1118
+
1119
+ <div
1120
+ className\="iress-u-inline iress--gutter--md"
1121
+ style\={{
1122
+ rowGap: 'var(--iress-g-spacing-md'
1123
+ }}
1124
+ \>
1125
+ <IressText element\="p"\>
1126
+ Please resize your screen to see how the fluid value changes. Current breakpoint:{' '}
1127
+ <kn renderLabel\="and-above" />
1128
+ . </IressText\>
1129
+ <IressButton fluid\>
1130
+ Fluid: true </IressButton\>
1131
+ <IressButton fluid\="xs"\>
1132
+ Fluid: xs </IressButton\>
1133
+ <IressButton fluid\="sm"\>
1134
+ Fluid: sm </IressButton\>
1135
+ <IressButton fluid\="md"\>
1136
+ Fluid: md </IressButton\>
1137
+ <IressButton fluid\="lg"\>
1138
+ Fluid: lg </IressButton\>
1139
+ <IressButton fluid\="xl"\>
1140
+ Fluid: xl </IressButton\>
1141
+ <IressButton fluid\="xxl"\>
1142
+ Fluid: xxl </IressButton\>
1143
+ </div\>
1144
+
1145
+ ```
1146
+
1147
+ #### Props
1148
+
1149
+ | Name | Description | Default | Control |
1150
+ | --- | --- | --- | --- |
1151
+ | append |
1152
+ Content for the append slot.
1153
+
1154
+ ReactNode
1155
+
1156
+
1157
+
1158
+ | \- | Set object |
1159
+ | attrs |
1160
+
1161
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
1162
+
1163
+ Record<string, string | boolean>
1164
+
1165
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
1166
+
1167
+ | \- | Set object |
1168
+ | children |
1169
+
1170
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
1171
+
1172
+ ReactNode
1173
+
1174
+
1175
+
1176
+ | \- |
1177
+
1178
+ ""
1179
+
1180
+ |
1181
+ | download |
1182
+
1183
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
1184
+
1185
+ boolean
1186
+
1187
+
1188
+
1189
+ | \- | Set boolean |
1190
+ | fluid |
1191
+
1192
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
1193
+
1194
+ union
1195
+
1196
+
1197
+
1198
+ |
1199
+
1200
+ false
1201
+
1202
+ | \- |
1203
+ | href |
1204
+
1205
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
1206
+
1207
+ string
1208
+
1209
+
1210
+
1211
+ | \- | Set string |
1212
+ | loading |
1213
+
1214
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
1215
+
1216
+ union
1217
+
1218
+
1219
+
1220
+ |
1221
+
1222
+ false
1223
+
1224
+ | Set object |
1225
+ | mode |
1226
+
1227
+ Style of the button.
1228
+
1229
+ union
1230
+
1231
+
1232
+
1233
+ |
1234
+
1235
+ 'secondary'
1236
+
1237
+ | Set object |
1238
+ | noWrap |
1239
+
1240
+ Prevents text wrapping if set to true.
1241
+
1242
+ boolean
1243
+
1244
+
1245
+
1246
+ |
1247
+
1248
+ false
1249
+
1250
+ | Set boolean |
1251
+ | prepend |
1252
+
1253
+ Content for the prepend slot.
1254
+
1255
+ ReactNode
1256
+
1257
+
1258
+
1259
+ | \- | Set object |
1260
+ | rel |
1261
+
1262
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
1263
+
1264
+ string
1265
+
1266
+
1267
+
1268
+ | \- | Set string |
1269
+ | target |
1270
+
1271
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
1272
+
1273
+ string
1274
+
1275
+
1276
+
1277
+ | \- | Set string |
1278
+ | type |
1279
+
1280
+ The type of the button.
1281
+
1282
+ union
1283
+
1284
+
1285
+
1286
+ |
1287
+
1288
+ 'button'
1289
+
1290
+ | Set object |
1291
+ | value |
1292
+
1293
+ The value of the button, when used in `IressButtonGroup`.
1294
+
1295
+ FormControlValue
1296
+
1297
+
1298
+
1299
+ | \- | Set object |
1300
+
1301
+ ### Wrapping text
1302
+
1303
+ Button text will wrap on to a new line if there's not enough space for the text to sit on a single line. If you want to prevent the text from wrapping, you can set the `noWrap` prop to `true`.
1304
+
1305
+ If your button contains a lot of text, the text may wrap on to more than one line. You can manage this on a case by case basis by setting a minimum width on your button via CSS if you need to.
1306
+
1307
+ [](./iframe.html?id=components-button--wrapping-text)
1308
+
1309
+ Button with lots of text content that will wrap (default behaviour)
1310
+
1311
+ Button with lots of text content and a minimum width set via CSS
1312
+
1313
+ Button with lots of text content with the noWrap prop set to true
1314
+
1315
+ ```
1316
+
1317
+ <div
1318
+ style\={{
1319
+ width: 250
1320
+ }}
1321
+ \>
1322
+ <p\>
1323
+ <IressButton\>
1324
+ Button with lots of text content that will wrap (default behaviour) </IressButton\>
1325
+ </p\>
1326
+ <p\>
1327
+ <IressButton
1328
+ style\={{
1329
+ minWidth: 300
1330
+ }}
1331
+ \>
1332
+ Button with lots of text content and a minimum width set via CSS </IressButton\>
1333
+ </p\>
1334
+ <p\>
1335
+ <IressButton noWrap\>
1336
+ Button with lots of text content with the noWrap prop set to true </IressButton\>
1337
+ </p\>
1338
+ </div\>
1339
+
1340
+ ```
1341
+
1342
+ #### Props
1343
+
1344
+ | Name | Description | Default | Control |
1345
+ | --- | --- | --- | --- |
1346
+ | append |
1347
+ Content for the append slot.
1348
+
1349
+ ReactNode
1350
+
1351
+
1352
+
1353
+ | \- | Set object |
1354
+ | attrs |
1355
+
1356
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
1357
+
1358
+ Record<string, string | boolean>
1359
+
1360
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
1361
+
1362
+ | \- | Set object |
1363
+ | children |
1364
+
1365
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
1366
+
1367
+ ReactNode
1368
+
1369
+
1370
+
1371
+ | \- | \- |
1372
+ | download |
1373
+
1374
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
1375
+
1376
+ boolean
1377
+
1378
+
1379
+
1380
+ | \- | Set boolean |
1381
+ | fluid |
1382
+
1383
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
1384
+
1385
+ union
1386
+
1387
+
1388
+
1389
+ |
1390
+
1391
+ false
1392
+
1393
+ | Set object |
1394
+ | href |
1395
+
1396
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
1397
+
1398
+ string
1399
+
1400
+
1401
+
1402
+ | \- | Set string |
1403
+ | loading |
1404
+
1405
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
1406
+
1407
+ union
1408
+
1409
+
1410
+
1411
+ |
1412
+
1413
+ false
1414
+
1415
+ | Set object |
1416
+ | mode |
1417
+
1418
+ Style of the button.
1419
+
1420
+ union
1421
+
1422
+
1423
+
1424
+ |
1425
+
1426
+ 'secondary'
1427
+
1428
+ | Set object |
1429
+ | noWrap |
1430
+
1431
+ Prevents text wrapping if set to true.
1432
+
1433
+ boolean
1434
+
1435
+
1436
+
1437
+ |
1438
+
1439
+ false
1440
+
1441
+ | \- |
1442
+ | prepend |
1443
+
1444
+ Content for the prepend slot.
1445
+
1446
+ ReactNode
1447
+
1448
+
1449
+
1450
+ | \- | Set object |
1451
+ | rel |
1452
+
1453
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
1454
+
1455
+ string
1456
+
1457
+
1458
+
1459
+ | \- | Set string |
1460
+ | target |
1461
+
1462
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
1463
+
1464
+ string
1465
+
1466
+
1467
+
1468
+ | \- | Set string |
1469
+ | type |
1470
+
1471
+ The type of the button.
1472
+
1473
+ union
1474
+
1475
+
1476
+
1477
+ |
1478
+
1479
+ 'button'
1480
+
1481
+ | Set object |
1482
+ | value |
1483
+
1484
+ The value of the button, when used in `IressButtonGroup`.
1485
+
1486
+ FormControlValue
1487
+
1488
+
1489
+
1490
+ | \- | Set object |
1491
+
1492
+ ### Slot props
1493
+
1494
+ Use the slots to correctly position icons or badges inside buttons.
1495
+
1496
+ * **Prepend** - Places the element before the text
1497
+ * **Append** - Places the element after the text
1498
+
1499
+ The iconOnly slot from previous versions of IDS has been deprecated. Please use the default slot instead.
1500
+
1501
+ [](./iframe.html?id=components-button--slots)
1502
+
1503
+ Prepend iconNewPrepend badge
1504
+
1505
+ Append iconAppend badge+999
1506
+
1507
+ ```
1508
+
1509
+ <\>
1510
+ <p className\="iress-u-inline iress--gutter--md"\>
1511
+ <IressButton prepend\={<IressIcon name\="home" />}\>
1512
+ Prepend icon </IressButton\>
1513
+ <IressButton prepend\={<IressBadge mode\="info"\>New</IressBadge\>}\>
1514
+ Prepend badge </IressButton\>
1515
+ </p\>
1516
+ <p className\="iress-u-inline iress--gutter--md"\>
1517
+ <IressButton append\={<IressIcon name\="home" />}\>
1518
+ Append icon </IressButton\>
1519
+ <IressButton append\={<IressBadge mode\="info"\>+999</IressBadge\>}\>
1520
+ Append badge </IressButton\>
1521
+ </p\>
1522
+ <p className\="iress-u-inline iress--gutter--md"\>
1523
+ <IressButton\>
1524
+ <IressIcon name\="home" />
1525
+ </IressButton\>
1526
+ </p\>
1527
+ </\>
1528
+
1529
+ ```
1530
+
1531
+ #### Props
1532
+
1533
+ | Name | Description | Default | Control |
1534
+ | --- | --- | --- | --- |
1535
+ | append |
1536
+ Content for the append slot.
1537
+
1538
+ ReactNode
1539
+
1540
+
1541
+
1542
+ | \- | Set object |
1543
+ | attrs |
1544
+
1545
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
1546
+
1547
+ Record<string, string | boolean>
1548
+
1549
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
1550
+
1551
+ | \- | Set object |
1552
+ | children |
1553
+
1554
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
1555
+
1556
+ ReactNode
1557
+
1558
+
1559
+
1560
+ | \- | \- |
1561
+ | download |
1562
+
1563
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
1564
+
1565
+ boolean
1566
+
1567
+
1568
+
1569
+ | \- | Set boolean |
1570
+ | fluid |
1571
+
1572
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
1573
+
1574
+ union
1575
+
1576
+
1577
+
1578
+ |
1579
+
1580
+ false
1581
+
1582
+ | Set object |
1583
+ | href |
1584
+
1585
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
1586
+
1587
+ string
1588
+
1589
+
1590
+
1591
+ | \- | Set string |
1592
+ | loading |
1593
+
1594
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
1595
+
1596
+ union
1597
+
1598
+
1599
+
1600
+ |
1601
+
1602
+ false
1603
+
1604
+ | Set object |
1605
+ | mode |
1606
+
1607
+ Style of the button.
1608
+
1609
+ union
1610
+
1611
+
1612
+
1613
+ |
1614
+
1615
+ 'secondary'
1616
+
1617
+ | Set object |
1618
+ | noWrap |
1619
+
1620
+ Prevents text wrapping if set to true.
1621
+
1622
+ boolean
1623
+
1624
+
1625
+
1626
+ |
1627
+
1628
+ false
1629
+
1630
+ | Set boolean |
1631
+ | prepend |
1632
+
1633
+ Content for the prepend slot.
1634
+
1635
+ ReactNode
1636
+
1637
+
1638
+
1639
+ | \- | \- |
1640
+ | rel |
1641
+
1642
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
1643
+
1644
+ string
1645
+
1646
+
1647
+
1648
+ | \- | Set string |
1649
+ | target |
1650
+
1651
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
1652
+
1653
+ string
1654
+
1655
+
1656
+
1657
+ | \- | Set string |
1658
+ | type |
1659
+
1660
+ The type of the button.
1661
+
1662
+ union
1663
+
1664
+
1665
+
1666
+ |
1667
+
1668
+ 'button'
1669
+
1670
+ | Set object |
1671
+ | value |
1672
+
1673
+ The value of the button, when used in `IressButtonGroup`.
1674
+
1675
+ FormControlValue
1676
+
1677
+
1678
+
1679
+ | \- | Set object |
1680
+
1681
+ ### Other attributes
1682
+
1683
+ Any other attributes you pass to the component will be spread to the underlying HTML button or anchor element.
1684
+
1685
+ This allows you to add your own aria attributes, or data attributes for analytics, as an example.
1686
+
1687
+ **Note:** The `attrs` prop has been deprecated, and will be removed in a future version. Please pass the attributes directly to the component instead.
1688
+
1689
+ [](./iframe.html?id=components-button--attrs)
1690
+
1691
+ Button text
1692
+
1693
+ ```
1694
+
1695
+ <IressButton data-analytics-id\="test"\>
1696
+ Button text
1697
+ </IressButton\>
1698
+
1699
+ ```
1700
+
1701
+ #### Props
1702
+
1703
+ | Name | Description | Default | Control |
1704
+ | --- | --- | --- | --- |
1705
+ | append |
1706
+ Content for the append slot.
1707
+
1708
+ ReactNode
1709
+
1710
+
1711
+
1712
+ | \- | Set object |
1713
+ | attrs |
1714
+
1715
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
1716
+
1717
+ Record<string, string | boolean>
1718
+
1719
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
1720
+
1721
+ | \- | Set object |
1722
+ | children |
1723
+
1724
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
1725
+
1726
+ ReactNode
1727
+
1728
+
1729
+
1730
+ | \- |
1731
+
1732
+ "Button text"
1733
+
1734
+ |
1735
+ | download |
1736
+
1737
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
1738
+
1739
+ boolean
1740
+
1741
+
1742
+
1743
+ | \- | Set boolean |
1744
+ | fluid |
1745
+
1746
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
1747
+
1748
+ union
1749
+
1750
+
1751
+
1752
+ |
1753
+
1754
+ false
1755
+
1756
+ | Set object |
1757
+ | href |
1758
+
1759
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
1760
+
1761
+ string
1762
+
1763
+
1764
+
1765
+ | \- | Set string |
1766
+ | loading |
1767
+
1768
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
1769
+
1770
+ union
1771
+
1772
+
1773
+
1774
+ |
1775
+
1776
+ false
1777
+
1778
+ | Set object |
1779
+ | mode |
1780
+
1781
+ Style of the button.
1782
+
1783
+ union
1784
+
1785
+
1786
+
1787
+ |
1788
+
1789
+ 'secondary'
1790
+
1791
+ | Set object |
1792
+ | noWrap |
1793
+
1794
+ Prevents text wrapping if set to true.
1795
+
1796
+ boolean
1797
+
1798
+
1799
+
1800
+ |
1801
+
1802
+ false
1803
+
1804
+ | Set boolean |
1805
+ | prepend |
1806
+
1807
+ Content for the prepend slot.
1808
+
1809
+ ReactNode
1810
+
1811
+
1812
+
1813
+ | \- | Set object |
1814
+ | rel |
1815
+
1816
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
1817
+
1818
+ string
1819
+
1820
+
1821
+
1822
+ | \- | Set string |
1823
+ | target |
1824
+
1825
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
1826
+
1827
+ string
1828
+
1829
+
1830
+
1831
+ | \- | Set string |
1832
+ | type |
1833
+
1834
+ The type of the button.
1835
+
1836
+ union
1837
+
1838
+
1839
+
1840
+ |
1841
+
1842
+ 'button'
1843
+
1844
+ | Set object |
1845
+ | value |
1846
+
1847
+ The value of the button, when used in `IressButtonGroup`.
1848
+
1849
+ FormControlValue
1850
+
1851
+
1852
+
1853
+ | \- | Set object |
1854
+
1855
+ ### Download button
1856
+
1857
+ Whilst `IressButton` does not have a `download` property, it can be configured quite easily.
1858
+
1859
+ Please see the example below. The use of an icon is optional.
1860
+
1861
+ [](./iframe.html?id=components-button--download-button)
1862
+
1863
+ [Download logo](assets/iress-logo.png)
1864
+
1865
+ ```
1866
+
1867
+ <IressButton
1868
+ download
1869
+ href\="assets/iress-logo.png"
1870
+ prepend\={<IressIcon name\="download" />}
1871
+ \>
1872
+ Download logo
1873
+ </IressButton\>
1874
+
1875
+ ```
1876
+
1877
+ #### Props
1878
+
1879
+ | Name | Description | Default | Control |
1880
+ | --- | --- | --- | --- |
1881
+ | append |
1882
+ Content for the append slot.
1883
+
1884
+ ReactNode
1885
+
1886
+
1887
+
1888
+ | \- | Set object |
1889
+ | attrs |
1890
+
1891
+ Accepts key/value pairs of attributes to be applied to the rendered native element.
1892
+
1893
+ Record<string, string | boolean>
1894
+
1895
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use the native HTML attributes instead.</td></tr></tbody></table>
1896
+
1897
+ | \- | Set object |
1898
+ | children |
1899
+
1900
+ Content is placed between prepend and append if provided. Used to describe the expected action of this button.
1901
+
1902
+ ReactNode
1903
+
1904
+
1905
+
1906
+ | \- |
1907
+
1908
+ "Download logo"
1909
+
1910
+ |
1911
+ | download |
1912
+
1913
+ If provided a href, will download the file instead of open it within the browser. Has no effect if href is not provided.
1914
+
1915
+ boolean
1916
+
1917
+
1918
+
1919
+ | \- | Set boolean |
1920
+ | fluid |
1921
+
1922
+ If `true`, the button will stretch to fill it's container. If set to a breakpoint, the button will be fluid up till that breakpoint.
1923
+
1924
+ union
1925
+
1926
+
1927
+
1928
+ |
1929
+
1930
+ false
1931
+
1932
+ | Set object |
1933
+ | href |
1934
+
1935
+ Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
1936
+
1937
+ string
1938
+
1939
+
1940
+
1941
+ | \- | assets/iress-logo.png |
1942
+ | loading |
1943
+
1944
+ When true, button is in loading state. If provided a string, will be used as the loading text for screen readers.
1945
+
1946
+ union
1947
+
1948
+
1949
+
1950
+ |
1951
+
1952
+ false
1953
+
1954
+ | Set object |
1955
+ | mode |
1956
+
1957
+ Style of the button.
1958
+
1959
+ union
1960
+
1961
+
1962
+
1963
+ |
1964
+
1965
+ 'secondary'
1966
+
1967
+ | Set object |
1968
+ | noWrap |
1969
+
1970
+ Prevents text wrapping if set to true.
1971
+
1972
+ boolean
1973
+
1974
+
1975
+
1976
+ |
1977
+
1978
+ false
1979
+
1980
+ | Set boolean |
1981
+ | prepend |
1982
+
1983
+ Content for the prepend slot.
1984
+
1985
+ ReactNode
1986
+
1987
+
1988
+
1989
+ | \- | Set object |
1990
+ | rel |
1991
+
1992
+ Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
1993
+
1994
+ string
1995
+
1996
+
1997
+
1998
+ | \- | Set string |
1999
+ | target |
2000
+
2001
+ Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
2002
+
2003
+ string
2004
+
2005
+
2006
+
2007
+ | \- | Set string |
2008
+ | type |
2009
+
2010
+ The type of the button.
2011
+
2012
+ union
2013
+
2014
+
2015
+
2016
+ |
2017
+
2018
+ 'button'
2019
+
2020
+ | Set object |
2021
+ | value |
2022
+
2023
+ The value of the button, when used in `IressButtonGroup`.
2024
+
2025
+ FormControlValue
2026
+
2027
+
2028
+
2029
+ | \- | Set object |
2030
+
2031
+ `IressCloseButton`
2032
+ ------------------
2033
+
2034
+ `IressCloseButton` is a special variant of `IressButton` that is used to execute a close action. It is used in modals, slideouts, and other components that require a close button.
2035
+
2036
+ It has one additional prop, `screenReaderText`, which is used to provide a screen reader only label for the close button.
2037
+
2038
+ [](./iframe.html?id=components-button-closebutton--close-button)
2039
+
2040
+ ```
2041
+
2042
+ <IressCloseButton
2043
+ append\=""
2044
+ prepend\=""
2045
+ />
2046
+
2047
+ ```
2048
+
2049
+ #### Props
2050
+
2051
+ | Name | Description | Default | Control |
2052
+ | --- | --- | --- | --- |
2053
+ | append |
2054
+ string
2055
+
2056
+
2057
+
2058
+ | \- | |
2059
+ | prepend |
2060
+
2061
+ string
2062
+
2063
+
2064
+
2065
+ | \- | |
2066
+ | screenreaderText |
2067
+
2068
+ Description for screen readers.
2069
+
2070
+ string
2071
+
2072
+
2073
+
2074
+ |
2075
+
2076
+ 'Close button'
2077
+
2078
+ | Set string |