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