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

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 (134) hide show
  1. package/generated/docs/components_components-alert-docs.md +496 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3429 -0
  3. package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +39 -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 +2290 -0
  9. package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +132 -15
  10. package/generated/docs/components_components-checkbox-docs.md +1040 -0
  11. package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1001 -82
  12. package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +102 -12
  13. package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
  14. package/generated/docs/components_components-combobox-docs.md +3735 -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} +266 -33
  18. package/generated/docs/components_components-field-docs.md +1369 -0
  19. package/generated/docs/components_components-filter-docs.md +4080 -0
  20. package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1556 -360
  21. package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +277 -60
  22. package/generated/docs/{components-hide-docs.md → components_components-hide-docs.md} +195 -124
  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} +113 -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} +1640 -231
  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} +721 -40
  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 +1643 -0
  38. package/generated/docs/components_components-popover-recipes-docs.md +491 -0
  39. package/generated/docs/components_components-progress-docs.md +115 -0
  40. package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +42 -33
  41. package/generated/docs/components_components-radio-docs.md +491 -0
  42. package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +927 -75
  43. package/generated/docs/components_components-readonly-docs.md +263 -0
  44. package/generated/docs/components_components-richselect-docs.md +6521 -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} +51 -11
  49. package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
  50. package/generated/docs/components_components-slideout-docs.md +2293 -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 +3658 -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 +257 -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} +187 -85
  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} +798 -153
  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/components_sandbox-docs.md +4 -0
  83. package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
  84. package/generated/docs/guidelines.md +484 -200
  85. package/generated/docs/introduction-docs.md +19 -30
  86. package/package.json +41 -45
  87. package/generated/docs/components-alert-docs.md +0 -130
  88. package/generated/docs/components-autocomplete-docs.md +0 -754
  89. package/generated/docs/components-button-docs.md +0 -362
  90. package/generated/docs/components-button-recipes-docs.md +0 -76
  91. package/generated/docs/components-buttongroup-docs.md +0 -310
  92. package/generated/docs/components-card-docs.md +0 -494
  93. package/generated/docs/components-checkbox-docs.md +0 -193
  94. package/generated/docs/components-combobox-docs.md +0 -1016
  95. package/generated/docs/components-field-docs.md +0 -675
  96. package/generated/docs/components-filter-docs.md +0 -1109
  97. package/generated/docs/components-icon-docs.md +0 -553
  98. package/generated/docs/components-input-docs.md +0 -335
  99. package/generated/docs/components-input-recipes-docs.md +0 -140
  100. package/generated/docs/components-inputcurrency-docs.md +0 -157
  101. package/generated/docs/components-label-docs.md +0 -135
  102. package/generated/docs/components-menu-docs.md +0 -704
  103. package/generated/docs/components-menu-menuitem-docs.md +0 -193
  104. package/generated/docs/components-navbar-docs.md +0 -291
  105. package/generated/docs/components-placeholder-docs.md +0 -27
  106. package/generated/docs/components-popover-docs.md +0 -464
  107. package/generated/docs/components-popover-recipes-docs.md +0 -245
  108. package/generated/docs/components-progress-docs.md +0 -104
  109. package/generated/docs/components-radio-docs.md +0 -107
  110. package/generated/docs/components-readonly-docs.md +0 -89
  111. package/generated/docs/components-richselect-docs.md +0 -2433
  112. package/generated/docs/components-skeleton-docs.md +0 -214
  113. package/generated/docs/components-slideout-docs.md +0 -538
  114. package/generated/docs/components-slider-docs.md +0 -346
  115. package/generated/docs/components-spinner-docs.md +0 -59
  116. package/generated/docs/components-table-ag-grid-docs.md +0 -1074
  117. package/generated/docs/components-table-docs.md +0 -1305
  118. package/generated/docs/components-tabset-docs.md +0 -341
  119. package/generated/docs/components-tabset-tab-docs.md +0 -86
  120. package/generated/docs/components-tag-docs.md +0 -115
  121. package/generated/docs/components-toaster-toast-docs.md +0 -157
  122. package/generated/docs/components-toggle-docs.md +0 -158
  123. package/generated/docs/contact-us-docs.md +0 -27
  124. package/generated/docs/extensions-editor-docs.md +0 -288
  125. package/generated/docs/extensions-editor-recipes-docs.md +0 -39
  126. package/generated/docs/foundations-introduction-docs.md +0 -17
  127. package/generated/docs/foundations-typography-docs.md +0 -191
  128. package/generated/docs/get-started-develop-docs.md +0 -209
  129. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  130. package/generated/docs/resources-changelog-docs.md +0 -6
  131. package/generated/docs/themes-available-themes-docs.md +0 -66
  132. package/generated/docs/themes-introduction-docs.md +0 -121
  133. package/generated/docs/themes-tokens-docs.md +0 -1200
  134. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -0,0 +1,2290 @@
1
+ Card
2
+ ====
3
+
4
+ Overview
5
+ --------
6
+
7
+ Cards are used to group small, related pieces of information into one digestible unit.
8
+
9
+ Read more
10
+
11
+ A single card will typically include a few different types of media, such as an image, a title, a synopsis, a call-to-action button or sub actions buttons - all associated with the same concept.
12
+
13
+ Cards can be configured in a variety of ways. You can use the render props (slots) if you want to create a structured layout, or you can create a custom card with your own markup if you need more flexibility.
14
+
15
+ [](./iframe.html?id=components-card--default)
16
+
17
+ I'm a card
18
+
19
+ Hide codedrawOpen in CodeSandbox
20
+
21
+ <IressCard\>
22
+ I'm a card
23
+ </IressCard\>
24
+
25
+ ```
26
+
27
+ Props
28
+ -----
29
+
30
+ | Name | Description | Default | Control |
31
+ | --- | --- | --- | --- |
32
+ | children |
33
+ Main body of the card
34
+
35
+ ReactReactNode
36
+
37
+
38
+
39
+ | \- |
40
+
41
+ "I'm a card"
42
+
43
+ |
44
+ | footer |
45
+
46
+ Section that sticks to the bottom of the card
47
+
48
+ ReactReactNode
49
+
50
+
51
+
52
+ | \- | Set object |
53
+ | heading |
54
+
55
+ Heading slot. Often used for a title or description.
56
+
57
+ ReactReactNode
58
+
59
+
60
+
61
+ | \- | Set object |
62
+ | headingLevel |
63
+
64
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
65
+
66
+ HeadingLevel
67
+
68
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
69
+
70
+ |
71
+
72
+ HeadingLevel.H2
73
+
74
+ | Set object |
75
+ | headingText |
76
+
77
+ Text to be displayed in the card heading in the card header.
78
+
79
+ string
80
+
81
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
82
+
83
+ | \- | Set string |
84
+ | media |
85
+
86
+ Section (often for an image, table or chart) that appears before the heading
87
+
88
+ ReactReactNode
89
+
90
+
91
+
92
+ | \- | Set object |
93
+ | onClick |
94
+
95
+ When set, the card will be clickable and will apply the selected style
96
+
97
+ ReactMouseEventHandler
98
+
99
+
100
+
101
+ | \- | Set object |
102
+ | padding |
103
+
104
+ |
105
+
106
+ PaddingSize.Md
107
+
108
+ | Set object |
109
+ | prepend |
110
+
111
+ Slot to the left of card content.
112
+
113
+ ReactReactNode
114
+
115
+
116
+
117
+ | \- | Set object |
118
+ | topRight |
119
+
120
+ Slot positioned to the top right of the card, often used for an icon or action menu
121
+
122
+ ReactReactNode
123
+
124
+
125
+
126
+ | \- | Set object |
127
+
128
+ Examples
129
+ --------
130
+
131
+ ### Simple cards
132
+
133
+ All slots and props for card are optional. You can create a simple card by adding some content to the default slot.
134
+
135
+ [](./iframe.html?id=components-card--simple)
136
+
137
+ I'm a simple card
138
+
139
+ Hide codedrawOpen in CodeSandbox
140
+
141
+ <IressCard\>
142
+ I'm a simple card
143
+ </IressCard\>
144
+
145
+ ```
146
+
147
+ #### Props
148
+
149
+ | Name | Description | Default | Control |
150
+ | --- | --- | --- | --- |
151
+ | children |
152
+ Main body of the card
153
+
154
+ ReactReactNode
155
+
156
+
157
+
158
+ | \- |
159
+
160
+ "I'm a simple card"
161
+
162
+ |
163
+ | footer |
164
+
165
+ Section that sticks to the bottom of the card
166
+
167
+ ReactReactNode
168
+
169
+
170
+
171
+ | \- | Set object |
172
+ | heading |
173
+
174
+ Heading slot. Often used for a title or description.
175
+
176
+ ReactReactNode
177
+
178
+
179
+
180
+ | \- | Set object |
181
+ | headingLevel |
182
+
183
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
184
+
185
+ HeadingLevel
186
+
187
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
188
+
189
+ |
190
+
191
+ HeadingLevel.H2
192
+
193
+ | Set object |
194
+ | headingText |
195
+
196
+ Text to be displayed in the card heading in the card header.
197
+
198
+ string
199
+
200
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
201
+
202
+ | \- | Set string |
203
+ | media |
204
+
205
+ Section (often for an image, table or chart) that appears before the heading
206
+
207
+ ReactReactNode
208
+
209
+
210
+
211
+ | \- | Set object |
212
+ | onClick |
213
+
214
+ When set, the card will be clickable and will apply the selected style
215
+
216
+ ReactMouseEventHandler
217
+
218
+
219
+
220
+ | \- | Set object |
221
+ | padding |
222
+
223
+ |
224
+
225
+ PaddingSize.Md
226
+
227
+ | Set object |
228
+ | prepend |
229
+
230
+ Slot to the left of card content.
231
+
232
+ ReactReactNode
233
+
234
+
235
+
236
+ | \- | Set object |
237
+ | topRight |
238
+
239
+ Slot positioned to the top right of the card, often used for an icon or action menu
240
+
241
+ ReactReactNode
242
+
243
+
244
+
245
+ | \- | Set object |
246
+
247
+ ### Padding
248
+
249
+ Padding can be controlled using the `padding` prop. It can be set to `none`, `sm`, `md` or `lg`. It defaults to `md`.
250
+
251
+ [](./iframe.html?id=components-card--padding)
252
+
253
+ I’m a card with none padding
254
+
255
+ I’m a card with sm padding
256
+
257
+ I’m a card with md padding
258
+
259
+ I’m a card with lg padding
260
+
261
+ Hide codedrawOpen in CodeSandbox
262
+
263
+ <div className\="iress-u-stack iress--gutter--md"\>
264
+ <IressCard padding\="none"\>
265
+ I’m a card with none padding </IressCard\>
266
+ <IressCard padding\="sm"\>
267
+ I’m a card with sm padding </IressCard\>
268
+ <IressCard padding\="md"\>
269
+ I’m a card with md padding </IressCard\>
270
+ <IressCard padding\="lg"\>
271
+ I’m a card with lg padding </IressCard\>
272
+ </div\>
273
+
274
+ ```
275
+
276
+ #### Props
277
+
278
+ | Name | Description | Default | Control |
279
+ | --- | --- | --- | --- |
280
+ | children |
281
+ Main body of the card
282
+
283
+ ReactReactNode
284
+
285
+
286
+
287
+ | \- |
288
+
289
+ "I'm a card"
290
+
291
+ |
292
+ | footer |
293
+
294
+ Section that sticks to the bottom of the card
295
+
296
+ ReactReactNode
297
+
298
+
299
+
300
+ | \- | Set object |
301
+ | heading |
302
+
303
+ Heading slot. Often used for a title or description.
304
+
305
+ ReactReactNode
306
+
307
+
308
+
309
+ | \- | Set object |
310
+ | headingLevel |
311
+
312
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
313
+
314
+ HeadingLevel
315
+
316
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
317
+
318
+ |
319
+
320
+ HeadingLevel.H2
321
+
322
+ | Set object |
323
+ | headingText |
324
+
325
+ Text to be displayed in the card heading in the card header.
326
+
327
+ string
328
+
329
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
330
+
331
+ | \- | Set string |
332
+ | media |
333
+
334
+ Section (often for an image, table or chart) that appears before the heading
335
+
336
+ ReactReactNode
337
+
338
+
339
+
340
+ | \- | Set object |
341
+ | onClick |
342
+
343
+ When set, the card will be clickable and will apply the selected style
344
+
345
+ ReactMouseEventHandler
346
+
347
+
348
+
349
+ | \- | Set object |
350
+ | padding |
351
+
352
+ |
353
+
354
+ PaddingSize.Md
355
+
356
+ | Set object |
357
+ | prepend |
358
+
359
+ Slot to the left of card content.
360
+
361
+ ReactReactNode
362
+
363
+
364
+
365
+ | \- | Set object |
366
+ | topRight |
367
+
368
+ Slot positioned to the top right of the card, often used for an icon or action menu
369
+
370
+ ReactReactNode
371
+
372
+
373
+
374
+ | \- | Set object |
375
+
376
+ ### Stretch
377
+
378
+ The `stretch` prop can be used to stretch the card to fill its container.
379
+
380
+ [](./iframe.html?id=components-card--stretch)
381
+
382
+ I’m a stretched card
383
+
384
+ I’m a card with lots of content. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.
385
+
386
+ Hide codedrawOpen in CodeSandbox
387
+
388
+ <IressRow
389
+ gutter\="md"
390
+ verticalAlign\="stretch"
391
+ \>
392
+ <IressCol\>
393
+ <IressCard stretch\>
394
+ I’m a stretched card </IressCard\>
395
+ </IressCol\>
396
+ <IressCol\>
397
+ <IressCard\>
398
+ I’m a card with lots of content. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. </IressCard\>
399
+ </IressCol\>
400
+ </IressRow\>
401
+
402
+ ```
403
+
404
+ #### Props
405
+
406
+ | Name | Description | Default | Control |
407
+ | --- | --- | --- | --- |
408
+ | children |
409
+ Main body of the card
410
+
411
+ ReactReactNode
412
+
413
+
414
+
415
+ | \- |
416
+
417
+ "I'm a card"
418
+
419
+ |
420
+ | footer |
421
+
422
+ Section that sticks to the bottom of the card
423
+
424
+ ReactReactNode
425
+
426
+
427
+
428
+ | \- | Set object |
429
+ | heading |
430
+
431
+ Heading slot. Often used for a title or description.
432
+
433
+ ReactReactNode
434
+
435
+
436
+
437
+ | \- | Set object |
438
+ | headingLevel |
439
+
440
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
441
+
442
+ HeadingLevel
443
+
444
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
445
+
446
+ |
447
+
448
+ HeadingLevel.H2
449
+
450
+ | Set object |
451
+ | headingText |
452
+
453
+ Text to be displayed in the card heading in the card header.
454
+
455
+ string
456
+
457
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
458
+
459
+ | \- | Set string |
460
+ | media |
461
+
462
+ Section (often for an image, table or chart) that appears before the heading
463
+
464
+ ReactReactNode
465
+
466
+
467
+
468
+ | \- | Set object |
469
+ | onClick |
470
+
471
+ When set, the card will be clickable and will apply the selected style
472
+
473
+ ReactMouseEventHandler
474
+
475
+
476
+
477
+ | \- | Set object |
478
+ | padding |
479
+
480
+ |
481
+
482
+ PaddingSize.Md
483
+
484
+ | Set object |
485
+ | prepend |
486
+
487
+ Slot to the left of card content.
488
+
489
+ ReactReactNode
490
+
491
+
492
+
493
+ | \- | Set object |
494
+ | topRight |
495
+
496
+ Slot positioned to the top right of the card, often used for an icon or action menu
497
+
498
+ ReactReactNode
499
+
500
+
501
+
502
+ | \- | Set object |
503
+
504
+ ### Selected
505
+
506
+ Setting the `selected` prop highlights the card, usually to allow selection in a list.
507
+
508
+ [](./iframe.html?id=components-card--selected)
509
+
510
+ I'm a selected card
511
+
512
+ Hide codedrawOpen in CodeSandbox
513
+
514
+ <IressCard selected\>
515
+ I'm a selected card
516
+ </IressCard\>
517
+
518
+ ```
519
+
520
+ #### Props
521
+
522
+ | Name | Description | Default | Control |
523
+ | --- | --- | --- | --- |
524
+ | children |
525
+ Main body of the card
526
+
527
+ ReactReactNode
528
+
529
+
530
+
531
+ | \- |
532
+
533
+ "I'm a selected card"
534
+
535
+ |
536
+ | footer |
537
+
538
+ Section that sticks to the bottom of the card
539
+
540
+ ReactReactNode
541
+
542
+
543
+
544
+ | \- | Set object |
545
+ | heading |
546
+
547
+ Heading slot. Often used for a title or description.
548
+
549
+ ReactReactNode
550
+
551
+
552
+
553
+ | \- | Set object |
554
+ | headingLevel |
555
+
556
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
557
+
558
+ HeadingLevel
559
+
560
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
561
+
562
+ |
563
+
564
+ HeadingLevel.H2
565
+
566
+ | Set object |
567
+ | headingText |
568
+
569
+ Text to be displayed in the card heading in the card header.
570
+
571
+ string
572
+
573
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
574
+
575
+ | \- | Set string |
576
+ | media |
577
+
578
+ Section (often for an image, table or chart) that appears before the heading
579
+
580
+ ReactReactNode
581
+
582
+
583
+
584
+ | \- | Set object |
585
+ | onClick |
586
+
587
+ When set, the card will be clickable and will apply the selected style
588
+
589
+ ReactMouseEventHandler
590
+
591
+
592
+
593
+ | \- | Set object |
594
+ | padding |
595
+
596
+ |
597
+
598
+ PaddingSize.Md
599
+
600
+ | Set object |
601
+ | prepend |
602
+
603
+ Slot to the left of card content.
604
+
605
+ ReactReactNode
606
+
607
+
608
+
609
+ | \- | Set object |
610
+ | selected |
611
+
612
+ boolean
613
+
614
+
615
+
616
+ | \- | FalseTrue |
617
+ | topRight |
618
+
619
+ Slot positioned to the top right of the card, often used for an icon or action menu
620
+
621
+ ReactReactNode
622
+
623
+
624
+
625
+ | \- | Set object |
626
+
627
+ Render props (slots)
628
+ --------------------
629
+
630
+ If you're coming from v4 or earlier, you might be used to slots. In v5, we've replaced slots with render props which align with the React API. Render props allow you to create a structured layout for your card, while still having the flexibility to add custom content. They are simply functions that return JSX, so you can pass any component you like.
631
+
632
+ However, please be diligent as the component you use may not fit withing the confines of the `IressCard` layout.
633
+
634
+ ### Prepend
635
+
636
+ Use the `prepend` prop to add content to the left side of the card.
637
+
638
+ [](./iframe.html?id=components-card-slots--prepend)
639
+
640
+ I'm a card using the prepend render prop
641
+
642
+ Hide codedrawOpen in CodeSandbox
643
+
644
+ <IressCard prepend\={<IressIcon name\="star" />}\>
645
+ I'm a card using the prepend render prop
646
+ </IressCard\>
647
+
648
+ ```
649
+
650
+ #### Props
651
+
652
+ | Name | Description | Default | Control |
653
+ | --- | --- | --- | --- |
654
+ | children |
655
+ Main body of the card
656
+
657
+ ReactReactNode
658
+
659
+
660
+
661
+ | \- |
662
+
663
+ "I'm a card using the prepend render prop"
664
+
665
+ |
666
+ | footer |
667
+
668
+ Section that sticks to the bottom of the card
669
+
670
+ ReactReactNode
671
+
672
+
673
+
674
+ | \- | Set object |
675
+ | heading |
676
+
677
+ Heading slot. Often used for a title or description.
678
+
679
+ ReactReactNode
680
+
681
+
682
+
683
+ | \- | Set object |
684
+ | headingLevel |
685
+
686
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
687
+
688
+ HeadingLevel
689
+
690
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
691
+
692
+ |
693
+
694
+ HeadingLevel.H2
695
+
696
+ | Set object |
697
+ | headingText |
698
+
699
+ Text to be displayed in the card heading in the card header.
700
+
701
+ string
702
+
703
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
704
+
705
+ | \- | Set string |
706
+ | media |
707
+
708
+ Section (often for an image, table or chart) that appears before the heading
709
+
710
+ ReactReactNode
711
+
712
+
713
+
714
+ | \- | Set object |
715
+ | onClick |
716
+
717
+ When set, the card will be clickable and will apply the selected style
718
+
719
+ ReactMouseEventHandler
720
+
721
+
722
+
723
+ | \- | Set object |
724
+ | padding |
725
+
726
+ |
727
+
728
+ PaddingSize.Md
729
+
730
+ | Set object |
731
+ | prepend |
732
+
733
+ Slot to the left of card content.
734
+
735
+ ReactReactNode
736
+
737
+
738
+
739
+ | \- |
740
+
741
+ Edit JSON
742
+
743
+ prepend :
744
+
745
+ {
746
+
747
+ * $$typeof : Symbol(react.transitional.element)
748
+ * type :
749
+
750
+ {...} 9 keys
751
+
752
+ * key : null
753
+ * props :
754
+
755
+ {...} 1 key
756
+
757
+ * \_owner : null
758
+ * \_store :
759
+
760
+ {...} 0 keys
761
+
762
+
763
+ }
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+ |
772
+ | topRight |
773
+
774
+ Slot positioned to the top right of the card, often used for an icon or action menu
775
+
776
+ ReactReactNode
777
+
778
+
779
+
780
+ | \- | Set object |
781
+
782
+ ### Top Right
783
+
784
+ Use the `topRight` prop to add content to the top right of the card. This is useful for adding a badge, icon, or an actions menu.
785
+
786
+ [](./iframe.html?id=components-card-slots--top-right)
787
+
788
+ More actions in here
789
+
790
+ I'm a card using the topRight render prop
791
+
792
+ Hide codedrawOpen in CodeSandbox
793
+
794
+ <IressCard topRight\={<IressPopover activator\={<IressButton\><IressIcon name\="ellipsis-v" size\="lg"/></IressButton\>} align\="bottom-end"\><IressPanel\>More actions in here</IressPanel\></IressPopover\>}\>
795
+ I'm a card using the topRight render prop
796
+ </IressCard\>
797
+
798
+ ```
799
+
800
+ #### Props
801
+
802
+ | Name | Description | Default | Control |
803
+ | --- | --- | --- | --- |
804
+ | children |
805
+ Main body of the card
806
+
807
+ ReactReactNode
808
+
809
+
810
+
811
+ | \- |
812
+
813
+ "I'm a card using the topRight render prop"
814
+
815
+ |
816
+ | footer |
817
+
818
+ Section that sticks to the bottom of the card
819
+
820
+ ReactReactNode
821
+
822
+
823
+
824
+ | \- | Set object |
825
+ | heading |
826
+
827
+ Heading slot. Often used for a title or description.
828
+
829
+ ReactReactNode
830
+
831
+
832
+
833
+ | \- | Set object |
834
+ | headingLevel |
835
+
836
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
837
+
838
+ HeadingLevel
839
+
840
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
841
+
842
+ |
843
+
844
+ HeadingLevel.H2
845
+
846
+ | Set object |
847
+ | headingText |
848
+
849
+ Text to be displayed in the card heading in the card header.
850
+
851
+ string
852
+
853
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
854
+
855
+ | \- | Set string |
856
+ | media |
857
+
858
+ Section (often for an image, table or chart) that appears before the heading
859
+
860
+ ReactReactNode
861
+
862
+
863
+
864
+ | \- | Set object |
865
+ | onClick |
866
+
867
+ When set, the card will be clickable and will apply the selected style
868
+
869
+ ReactMouseEventHandler
870
+
871
+
872
+
873
+ | \- | Set object |
874
+ | padding |
875
+
876
+ |
877
+
878
+ PaddingSize.Md
879
+
880
+ | Set object |
881
+ | prepend |
882
+
883
+ Slot to the left of card content.
884
+
885
+ ReactReactNode
886
+
887
+
888
+
889
+ | \- | Set object |
890
+ | topRight |
891
+
892
+ Slot positioned to the top right of the card, often used for an icon or action menu
893
+
894
+ ReactReactNode
895
+
896
+
897
+
898
+ | \- |
899
+
900
+ Edit JSON
901
+
902
+ topRight :
903
+
904
+ {
905
+
906
+ * $$typeof : Symbol(react.transitional.element)
907
+ * type :
908
+
909
+ {...} 5 keys
910
+
911
+ * key : null
912
+ * props :
913
+
914
+ {...} 3 keys
915
+
916
+ * \_owner : null
917
+ * \_store :
918
+
919
+ {...} 0 keys
920
+
921
+
922
+ }
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+ |
931
+
932
+ ### Heading
933
+
934
+ Use the `heading` prop to add a header to the card. The header can be any component you like, but it is designed to support a simple heading element, optionally wrapped with a link.
935
+
936
+ **Note:** `headingText` and `headingLevel` props have been replaced with the `heading` render prop to give you more control over the heading element and its content. To use the previous behaviour, you can pass a string which will automatically create a `h2` element, or pass a `h*` element with the text as a child.
937
+
938
+ [](./iframe.html?id=components-card-slots--heading)
939
+
940
+ ### Welcome to Iress!
941
+
942
+ I'm a card using the heading render prop
943
+
944
+ Hide codedrawOpen in CodeSandbox
945
+
946
+ <IressCard heading\={<h3\>Welcome to Iress!</h3\>}\>
947
+ I'm a card using the heading render prop
948
+ </IressCard\>
949
+
950
+ ```
951
+
952
+ #### Props
953
+
954
+ | Name | Description | Default | Control |
955
+ | --- | --- | --- | --- |
956
+ | children |
957
+ Main body of the card
958
+
959
+ ReactReactNode
960
+
961
+
962
+
963
+ | \- |
964
+
965
+ "I'm a card using the heading render prop"
966
+
967
+ |
968
+ | footer |
969
+
970
+ Section that sticks to the bottom of the card
971
+
972
+ ReactReactNode
973
+
974
+
975
+
976
+ | \- | Set object |
977
+ | heading |
978
+
979
+ Heading slot. Often used for a title or description.
980
+
981
+ ReactReactNode
982
+
983
+
984
+
985
+ | \- |
986
+
987
+ Edit JSON
988
+
989
+ heading :
990
+
991
+ {
992
+
993
+ * $$typeof : Symbol(react.transitional.element)
994
+ * type : "h3"
995
+ * key : null
996
+ * props :
997
+
998
+ {...} 1 key
999
+
1000
+ * \_owner : null
1001
+ * \_store :
1002
+
1003
+ {...} 0 keys
1004
+
1005
+
1006
+ }
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ |
1015
+ | headingLevel |
1016
+
1017
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1018
+
1019
+ HeadingLevel
1020
+
1021
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1022
+
1023
+ |
1024
+
1025
+ HeadingLevel.H2
1026
+
1027
+ | Set object |
1028
+ | headingText |
1029
+
1030
+ Text to be displayed in the card heading in the card header.
1031
+
1032
+ string
1033
+
1034
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1035
+
1036
+ | \- | Set string |
1037
+ | media |
1038
+
1039
+ Section (often for an image, table or chart) that appears before the heading
1040
+
1041
+ ReactReactNode
1042
+
1043
+
1044
+
1045
+ | \- | Set object |
1046
+ | onClick |
1047
+
1048
+ When set, the card will be clickable and will apply the selected style
1049
+
1050
+ ReactMouseEventHandler
1051
+
1052
+
1053
+
1054
+ | \- | Set object |
1055
+ | padding |
1056
+
1057
+ |
1058
+
1059
+ PaddingSize.Md
1060
+
1061
+ | Set object |
1062
+ | prepend |
1063
+
1064
+ Slot to the left of card content.
1065
+
1066
+ ReactReactNode
1067
+
1068
+
1069
+
1070
+ | \- | Set object |
1071
+ | topRight |
1072
+
1073
+ Slot positioned to the top right of the card, often used for an icon or action menu
1074
+
1075
+ ReactReactNode
1076
+
1077
+
1078
+
1079
+ | \- | Set object |
1080
+
1081
+ ### Media
1082
+
1083
+ Use the `media` prop to add media to the card. The media can be any component you like, but it is designed to support an image or video.
1084
+
1085
+ [](./iframe.html?id=components-card-slots--media)
1086
+
1087
+ ![A man in an Iress branded t-shirt smiles at the camera while two female colleagues have a discussion in the foreground](https://www.iress.com/media/images/media-contact.width-600.png)
1088
+
1089
+ I'm a card using the media render prop
1090
+
1091
+ Hide codedrawOpen in CodeSandbox
1092
+
1093
+ <IressCard media\={<img alt\="A man in an Iress branded t-shirt smiles at the camera while two female colleagues have a discussion in the foreground" src\="https://www.iress.com/media/images/media-contact.width-600.png" width\="250"/>}\>
1094
+ I'm a card using the media render prop
1095
+ </IressCard\>
1096
+
1097
+ ```
1098
+
1099
+ #### Props
1100
+
1101
+ | Name | Description | Default | Control |
1102
+ | --- | --- | --- | --- |
1103
+ | children |
1104
+ Main body of the card
1105
+
1106
+ ReactReactNode
1107
+
1108
+
1109
+
1110
+ | \- |
1111
+
1112
+ "I'm a card using the media render prop"
1113
+
1114
+ |
1115
+ | footer |
1116
+
1117
+ Section that sticks to the bottom of the card
1118
+
1119
+ ReactReactNode
1120
+
1121
+
1122
+
1123
+ | \- | Set object |
1124
+ | heading |
1125
+
1126
+ Heading slot. Often used for a title or description.
1127
+
1128
+ ReactReactNode
1129
+
1130
+
1131
+
1132
+ | \- | Set object |
1133
+ | headingLevel |
1134
+
1135
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1136
+
1137
+ HeadingLevel
1138
+
1139
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1140
+
1141
+ |
1142
+
1143
+ HeadingLevel.H2
1144
+
1145
+ | Set object |
1146
+ | headingText |
1147
+
1148
+ Text to be displayed in the card heading in the card header.
1149
+
1150
+ string
1151
+
1152
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1153
+
1154
+ | \- | Set string |
1155
+ | media |
1156
+
1157
+ Section (often for an image, table or chart) that appears before the heading
1158
+
1159
+ ReactReactNode
1160
+
1161
+
1162
+
1163
+ | \- |
1164
+
1165
+ Edit JSON
1166
+
1167
+ media :
1168
+
1169
+ {
1170
+
1171
+ * $$typeof : Symbol(react.transitional.element)
1172
+ * type : "img"
1173
+ * key : null
1174
+ * props :
1175
+
1176
+ {...} 3 keys
1177
+
1178
+ * \_owner : null
1179
+ * \_store :
1180
+
1181
+ {...} 0 keys
1182
+
1183
+
1184
+ }
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+ |
1193
+ | onClick |
1194
+
1195
+ When set, the card will be clickable and will apply the selected style
1196
+
1197
+ ReactMouseEventHandler
1198
+
1199
+
1200
+
1201
+ | \- | Set object |
1202
+ | padding |
1203
+
1204
+ |
1205
+
1206
+ PaddingSize.Md
1207
+
1208
+ | Set object |
1209
+ | prepend |
1210
+
1211
+ Slot to the left of card content.
1212
+
1213
+ ReactReactNode
1214
+
1215
+
1216
+
1217
+ | \- | Set object |
1218
+ | topRight |
1219
+
1220
+ Slot positioned to the top right of the card, often used for an icon or action menu
1221
+
1222
+ ReactReactNode
1223
+
1224
+
1225
+
1226
+ | \- | Set object |
1227
+
1228
+ ### Content
1229
+
1230
+ Use the `content` prop to add content to the card. The content can be any component you like, but it is designed to support simple text based elements.
1231
+
1232
+ [](./iframe.html?id=components-card-slots--content)
1233
+
1234
+ Find out all the onboarding material you need
1235
+ [with this easy guide](https://iress.com).
1236
+
1237
+ Hide codedrawOpen in CodeSandbox
1238
+
1239
+ <IressCard\>
1240
+ <IressText\>
1241
+ Find out all the onboarding material you need{' '}
1242
+ <br />
1243
+ <a href\="https://iress.com"\>
1244
+ with this easy guide </a\>
1245
+ . </IressText\>
1246
+ </IressCard\>
1247
+
1248
+ ```
1249
+
1250
+ #### Props
1251
+
1252
+ | Name | Description | Default | Control |
1253
+ | --- | --- | --- | --- |
1254
+ | children |
1255
+ Main body of the card
1256
+
1257
+ ReactReactNode
1258
+
1259
+
1260
+
1261
+ | \- |
1262
+
1263
+ Edit JSON
1264
+
1265
+ children :
1266
+
1267
+ {
1268
+
1269
+ * $$typeof : Symbol(react.transitional.element)
1270
+ * type : ({ align, children, className, "data-testid": dataTestId, element: Tag = "div", mode, noGutter, variant, ...restProps }) => /\* @\_\_PURE\_\_ \*/ jsxDEV( Tag, { ...restProps, className: classNames(className, "iress-u-text", { \[\`iress--${variant}\`\]: Boolean(variant), \[\`iress--${mode}\`\]: Boolean(mode), \[\`${GlobalCSSClass.TextAlignBase}--${align}\`\]: Boolean(align), "iress--no-gutter": noGutter }), "data-testid": dataTestId, children }, void 0, false, { fileName: "/home/runner/work/design-system/design-system/packages/components/src/components/Text/Text.tsx", lineNumber: 22, columnNumber: 1 }, this )
1271
+ * key : null
1272
+ * props :
1273
+
1274
+ {...} 1 key
1275
+
1276
+ * \_owner : null
1277
+ * \_store :
1278
+
1279
+ {...} 0 keys
1280
+
1281
+
1282
+ }
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+ |
1291
+ | footer |
1292
+
1293
+ Section that sticks to the bottom of the card
1294
+
1295
+ ReactReactNode
1296
+
1297
+
1298
+
1299
+ | \- | Set object |
1300
+ | heading |
1301
+
1302
+ Heading slot. Often used for a title or description.
1303
+
1304
+ ReactReactNode
1305
+
1306
+
1307
+
1308
+ | \- | Set object |
1309
+ | headingLevel |
1310
+
1311
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1312
+
1313
+ HeadingLevel
1314
+
1315
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1316
+
1317
+ |
1318
+
1319
+ HeadingLevel.H2
1320
+
1321
+ | Set object |
1322
+ | headingText |
1323
+
1324
+ Text to be displayed in the card heading in the card header.
1325
+
1326
+ string
1327
+
1328
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1329
+
1330
+ | \- | Set string |
1331
+ | media |
1332
+
1333
+ Section (often for an image, table or chart) that appears before the heading
1334
+
1335
+ ReactReactNode
1336
+
1337
+
1338
+
1339
+ | \- | Set object |
1340
+ | onClick |
1341
+
1342
+ When set, the card will be clickable and will apply the selected style
1343
+
1344
+ ReactMouseEventHandler
1345
+
1346
+
1347
+
1348
+ | \- | Set object |
1349
+ | padding |
1350
+
1351
+ |
1352
+
1353
+ PaddingSize.Md
1354
+
1355
+ | Set object |
1356
+ | prepend |
1357
+
1358
+ Slot to the left of card content.
1359
+
1360
+ ReactReactNode
1361
+
1362
+
1363
+
1364
+ | \- | Set object |
1365
+ | topRight |
1366
+
1367
+ Slot positioned to the top right of the card, often used for an icon or action menu
1368
+
1369
+ ReactReactNode
1370
+
1371
+
1372
+
1373
+ | \- | Set object |
1374
+
1375
+ ### Footer
1376
+
1377
+ Use the `footer` prop to add a footer to the card. The footer can be any component you like, but it is designed to support buttons.
1378
+
1379
+ [](./iframe.html?id=components-card-slots--footer)
1380
+
1381
+ I'm a card using the footer render prop
1382
+
1383
+ #new-starter#first-day
1384
+
1385
+ NEW
1386
+
1387
+ Hide codedrawOpen in CodeSandbox
1388
+
1389
+ <IressCard footer\={<IressInline gutter\="sm" horizontalAlign\="between"\><IressInline gutter\="sm"\><IressBadge mode\="background-default" pill\>#new-starter</IressBadge\><IressBadge mode\="background-default" pill\>#first-day</IressBadge\></IressInline\><IressBadge mode\="positive"\>NEW</IressBadge\></IressInline\>}\>
1390
+ I'm a card using the footer render prop
1391
+ </IressCard\>
1392
+
1393
+ ```
1394
+
1395
+ #### Props
1396
+
1397
+ | Name | Description | Default | Control |
1398
+ | --- | --- | --- | --- |
1399
+ | children |
1400
+ Main body of the card
1401
+
1402
+ ReactReactNode
1403
+
1404
+
1405
+
1406
+ | \- |
1407
+
1408
+ "I'm a card using the footer render prop"
1409
+
1410
+ |
1411
+ | footer |
1412
+
1413
+ Section that sticks to the bottom of the card
1414
+
1415
+ ReactReactNode
1416
+
1417
+
1418
+
1419
+ | \- |
1420
+
1421
+ Edit JSON
1422
+
1423
+ footer :
1424
+
1425
+ {
1426
+
1427
+ * $$typeof : Symbol(react.transitional.element)
1428
+ * type : ({ children, className, gutter = "none", horizontalAlign = "left", noWrap = false, verticalAlign = "top", ...restProps }) => { const classMap = { \[\`${InlineCssClass.HorizontalAlign}--${horizontalAlign}\`\]: true, \[InlineCssClass.NoWrap\]: noWrap, \[\`${InlineCssClass.VerticalAlign}--${verticalAlign}\`\]: true }; const cssClasses = classNames( className, InlineCssClass.Base, getResponsiveLayoutModifiers(InlineCssClass.Gutter, gutter, "none"), classMap ); return /\* @\_\_PURE\_\_ \*/ jsxDEV("div", { className: cssClasses, ...restProps, children }, void 0, false, { fileName: "/home/runner/work/design-system/design-system/packages/components/src/components/Inline/Inline.tsx", lineNumber: 33, columnNumber: 5 }, this); }
1429
+ * key : null
1430
+ * props :
1431
+
1432
+ {...} 3 keys
1433
+
1434
+ * \_owner : null
1435
+ * \_store :
1436
+
1437
+ {...} 0 keys
1438
+
1439
+
1440
+ }
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+ |
1449
+ | heading |
1450
+
1451
+ Heading slot. Often used for a title or description.
1452
+
1453
+ ReactReactNode
1454
+
1455
+
1456
+
1457
+ | \- | Set object |
1458
+ | headingLevel |
1459
+
1460
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1461
+
1462
+ HeadingLevel
1463
+
1464
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1465
+
1466
+ |
1467
+
1468
+ HeadingLevel.H2
1469
+
1470
+ | Set object |
1471
+ | headingText |
1472
+
1473
+ Text to be displayed in the card heading in the card header.
1474
+
1475
+ string
1476
+
1477
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1478
+
1479
+ | \- | Set string |
1480
+ | media |
1481
+
1482
+ Section (often for an image, table or chart) that appears before the heading
1483
+
1484
+ ReactReactNode
1485
+
1486
+
1487
+
1488
+ | \- | Set object |
1489
+ | onClick |
1490
+
1491
+ When set, the card will be clickable and will apply the selected style
1492
+
1493
+ ReactMouseEventHandler
1494
+
1495
+
1496
+
1497
+ | \- | Set object |
1498
+ | padding |
1499
+
1500
+ |
1501
+
1502
+ PaddingSize.Md
1503
+
1504
+ | Set object |
1505
+ | prepend |
1506
+
1507
+ Slot to the left of card content.
1508
+
1509
+ ReactReactNode
1510
+
1511
+
1512
+
1513
+ | \- | Set object |
1514
+ | topRight |
1515
+
1516
+ Slot positioned to the top right of the card, often used for an icon or action menu
1517
+
1518
+ ReactReactNode
1519
+
1520
+
1521
+
1522
+ | \- | Set object |
1523
+
1524
+ ### All slots
1525
+
1526
+ You can use all the slots together to create a custom card layout.
1527
+
1528
+ [](./iframe.html?id=components-card-slots--all-slots)
1529
+
1530
+ prepend
1531
+
1532
+ media
1533
+
1534
+ heading
1535
+
1536
+ topRight
1537
+
1538
+ children
1539
+
1540
+ footer
1541
+
1542
+ * * *
1543
+
1544
+ More actions in here
1545
+
1546
+ ![A man in an Iress branded t-shirt smiles at the camera while two female colleagues have a discussion in the foreground](https://www.iress.com/media/images/media-contact.width-600.png)
1547
+
1548
+ ### Welcome to Iress!
1549
+
1550
+ Find out all the onboarding material you need
1551
+ [with this easy guide](https://iress.com).
1552
+
1553
+ #new-starter#first-day
1554
+
1555
+ NEW
1556
+
1557
+ More actions in here
1558
+
1559
+ ![A man in an Iress branded t-shirt smiles at the camera while two female colleagues have a discussion in the foreground](https://www.iress.com/media/images/media-contact.width-600.png)
1560
+
1561
+ ### Welcome to Iress!
1562
+
1563
+ Find out all the onboarding material you need
1564
+ [with this easy guide](https://iress.com).
1565
+
1566
+ #new-starter#first-day
1567
+
1568
+ NEW
1569
+
1570
+ More actions in here
1571
+
1572
+ ![A man in an Iress branded t-shirt smiles at the camera while two female colleagues have a discussion in the foreground](https://www.iress.com/media/images/media-contact.width-600.png)
1573
+
1574
+ ### Welcome to Iress!
1575
+
1576
+ Find out all the onboarding material you need
1577
+ [with this easy guide](https://iress.com).
1578
+
1579
+ #new-starter#first-day
1580
+
1581
+ NEW
1582
+
1583
+ Hide codedrawOpen in CodeSandbox
1584
+
1585
+ import {
1586
+ IressContainer,
1587
+ IressInline,
1588
+ IressToggle,
1589
+ IressRow,
1590
+ IressCol,
1591
+ type IressCardProps,
1592
+ } from '@/main';
1593
+ import { useState } from 'react';
1594
+ import { IressCard } from '../Card';
1595
+ import {
1596
+ SUPPORTED\_CARD\_SLOTS,
1597
+ type SupportedCardSlots,
1598
+ } from './supportedCardSlots';
1599
+ export const CardAllSlots \= () \=> {
1600
+ const \[show, setShow\] \= useState({
1601
+ children: true,
1602
+ prepend: false,
1603
+ media: true,
1604
+ heading: true,
1605
+ topRight: true,
1606
+ footer: true,
1607
+ });
1608
+ const filteredArgs \= Object.fromEntries(
1609
+ Object.entries(supportedCardSlots).filter(
1610
+ (\[key\]) \=> show\[key as SupportedCardSlots\] || !(key in show),
1611
+ ),
1612
+ );
1613
+ return (
1614
+ <IressContainer\>
1615
+ <IressInline gutter\="md"\>
1616
+ {SUPPORTED\_CARD\_SLOTS.map((slot) \=> (
1617
+ <IressToggle
1618
+ key\={slot}
1619
+ checked\={show\[slot as never\]}
1620
+ onChange\={(checked) \=> {
1621
+ setShow({ ...show, \[slot\]: checked });
1622
+ }}
1623
+ \>
1624
+ {slot}
1625
+ </IressToggle\>
1626
+ ))}
1627
+ </IressInline\>
1628
+ <hr />
1629
+ <IressRow gutter\="md"\>
1630
+ <IressCol\>
1631
+ <IressCard {...filteredArgs} />
1632
+ </IressCol\>
1633
+ <IressCol\>
1634
+ <IressCard {...filteredArgs} />
1635
+ </IressCol\>
1636
+ <IressCol\>
1637
+ <IressCard {...filteredArgs} />
1638
+ </IressCol\>
1639
+ </IressRow\>
1640
+ </IressContainer\>
1641
+ );
1642
+ };
1643
+
1644
+ ```
1645
+
1646
+ #### Props
1647
+
1648
+ | Name | Description | Default | Control |
1649
+ | --- | --- | --- | --- |
1650
+ | children |
1651
+ Main body of the card
1652
+
1653
+ ReactReactNode
1654
+
1655
+
1656
+
1657
+ | \- | \- |
1658
+ | footer |
1659
+
1660
+ Section that sticks to the bottom of the card
1661
+
1662
+ ReactReactNode
1663
+
1664
+
1665
+
1666
+ | \- | \- |
1667
+ | heading |
1668
+
1669
+ Heading slot. Often used for a title or description.
1670
+
1671
+ ReactReactNode
1672
+
1673
+
1674
+
1675
+ | \- | \- |
1676
+ | headingLevel |
1677
+
1678
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1679
+
1680
+ HeadingLevel
1681
+
1682
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1683
+
1684
+ |
1685
+
1686
+ HeadingLevel.H2
1687
+
1688
+ | Set object |
1689
+ | headingText |
1690
+
1691
+ Text to be displayed in the card heading in the card header.
1692
+
1693
+ string
1694
+
1695
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1696
+
1697
+ | \- | Set string |
1698
+ | media |
1699
+
1700
+ Section (often for an image, table or chart) that appears before the heading
1701
+
1702
+ ReactReactNode
1703
+
1704
+
1705
+
1706
+ | \- | \- |
1707
+ | onClick |
1708
+
1709
+ When set, the card will be clickable and will apply the selected style
1710
+
1711
+ ReactMouseEventHandler
1712
+
1713
+
1714
+
1715
+ | \- | Set object |
1716
+ | padding |
1717
+
1718
+ |
1719
+
1720
+ PaddingSize.Md
1721
+
1722
+ | Set object |
1723
+ | prepend |
1724
+
1725
+ Slot to the left of card content.
1726
+
1727
+ ReactReactNode
1728
+
1729
+
1730
+
1731
+ | \- | \- |
1732
+ | topRight |
1733
+
1734
+ Slot positioned to the top right of the card, often used for an icon or action menu
1735
+
1736
+ ReactReactNode
1737
+
1738
+
1739
+
1740
+ | \- | \- |
1741
+
1742
+ Clickable cards
1743
+ ---------------
1744
+
1745
+ Note: The `clickable` prop has been deprecated in favour of using component variations, or the `onClick` prop.
1746
+
1747
+ ### Heading only
1748
+
1749
+ Since the `heading` prop now renders the component you give it, you have full control over the content of the `heading`. This means you can add pass it a heading with a link.
1750
+
1751
+ [](./iframe.html?id=components-card-clickable--heading-only)
1752
+
1753
+ [Clickable heading](https://iress.com)
1754
+ --------------------------------------
1755
+
1756
+ I'm a card with a clickable heading. NEVER use me when the whole card is clickable.
1757
+
1758
+ Hide codedrawOpen in CodeSandbox
1759
+
1760
+ <IressCard heading\={<h2\><a href\="https://iress.com"\>Clickable heading</a\></h2\>}\>
1761
+ I'm a card with a clickable heading. NEVER use me when the whole card is clickable.
1762
+ </IressCard\>
1763
+
1764
+ ```
1765
+
1766
+ #### Props
1767
+
1768
+ | Name | Description | Default | Control |
1769
+ | --- | --- | --- | --- |
1770
+ | children |
1771
+ Main body of the card
1772
+
1773
+ ReactReactNode
1774
+
1775
+
1776
+
1777
+ | \- |
1778
+
1779
+ "I'm a card with a clickable heading. NEVER use me when the whole card is clickable."
1780
+
1781
+ |
1782
+ | footer |
1783
+
1784
+ Section that sticks to the bottom of the card
1785
+
1786
+ ReactReactNode
1787
+
1788
+
1789
+
1790
+ | \- | Set object |
1791
+ | heading |
1792
+
1793
+ Heading slot. Often used for a title or description.
1794
+
1795
+ ReactReactNode
1796
+
1797
+
1798
+
1799
+ | \- |
1800
+
1801
+ Edit JSON
1802
+
1803
+ heading :
1804
+
1805
+ {
1806
+
1807
+ * $$typeof : Symbol(react.transitional.element)
1808
+ * type : "h2"
1809
+ * key : null
1810
+ * props :
1811
+
1812
+ {...} 1 key
1813
+
1814
+ * \_owner : null
1815
+ * \_store :
1816
+
1817
+ {...} 0 keys
1818
+
1819
+
1820
+ }
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+ |
1829
+ | headingLevel |
1830
+
1831
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1832
+
1833
+ HeadingLevel
1834
+
1835
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1836
+
1837
+ |
1838
+
1839
+ HeadingLevel.H2
1840
+
1841
+ | Set object |
1842
+ | headingText |
1843
+
1844
+ Text to be displayed in the card heading in the card header.
1845
+
1846
+ string
1847
+
1848
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1849
+
1850
+ | \- | Set string |
1851
+ | media |
1852
+
1853
+ Section (often for an image, table or chart) that appears before the heading
1854
+
1855
+ ReactReactNode
1856
+
1857
+
1858
+
1859
+ | \- | Set object |
1860
+ | onClick |
1861
+
1862
+ When set, the card will be clickable and will apply the selected style
1863
+
1864
+ ReactMouseEventHandler
1865
+
1866
+
1867
+
1868
+ | \- | Set object |
1869
+ | padding |
1870
+
1871
+ |
1872
+
1873
+ PaddingSize.Md
1874
+
1875
+ | Set object |
1876
+ | prepend |
1877
+
1878
+ Slot to the left of card content.
1879
+
1880
+ ReactReactNode
1881
+
1882
+
1883
+
1884
+ | \- | Set object |
1885
+ | topRight |
1886
+
1887
+ Slot positioned to the top right of the card, often used for an icon or action menu
1888
+
1889
+ ReactReactNode
1890
+
1891
+
1892
+
1893
+ | \- | Set object |
1894
+
1895
+ ### Whole card
1896
+
1897
+ The whole card can be made clickable by passing an `onClick` prop. All the appropriate styling will be added as well.
1898
+
1899
+ It's recommended to add `role="button"` and `tabindex="0"` to the card to make it clear to screen readers that the card is clickable.
1900
+
1901
+ [](./iframe.html?id=components-card-clickable--whole-card)
1902
+
1903
+ I am a card with an onClick handler. Click me to see what happens.
1904
+
1905
+ Hide codedrawOpen in CodeSandbox
1906
+
1907
+ <IressCard
1908
+ onClick\={() \=> alert("Card clicked")}
1909
+ onKeyDown\={() \=> alert("Key down on card (for keyboard users)")}
1910
+ role\="button"
1911
+ tabIndex\={0}
1912
+ \>
1913
+ I am a card with an onClick handler. Click me to see what happens.
1914
+ </IressCard\>
1915
+
1916
+ ```
1917
+
1918
+ #### Props
1919
+
1920
+ | Name | Description | Default | Control |
1921
+ | --- | --- | --- | --- |
1922
+ | children |
1923
+ Main body of the card
1924
+
1925
+ ReactReactNode
1926
+
1927
+
1928
+
1929
+ | \- |
1930
+
1931
+ "I am a card with an onClick handler. Click me to see what happens."
1932
+
1933
+ |
1934
+ | footer |
1935
+
1936
+ Section that sticks to the bottom of the card
1937
+
1938
+ ReactReactNode
1939
+
1940
+
1941
+
1942
+ | \- | Set object |
1943
+ | heading |
1944
+
1945
+ Heading slot. Often used for a title or description.
1946
+
1947
+ ReactReactNode
1948
+
1949
+
1950
+
1951
+ | \- | Set object |
1952
+ | headingLevel |
1953
+
1954
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1955
+
1956
+ HeadingLevel
1957
+
1958
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1959
+
1960
+ |
1961
+
1962
+ HeadingLevel.H2
1963
+
1964
+ | Set object |
1965
+ | headingText |
1966
+
1967
+ Text to be displayed in the card heading in the card header.
1968
+
1969
+ string
1970
+
1971
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1972
+
1973
+ | \- | Set string |
1974
+ | media |
1975
+
1976
+ Section (often for an image, table or chart) that appears before the heading
1977
+
1978
+ ReactReactNode
1979
+
1980
+
1981
+
1982
+ | \- | Set object |
1983
+ | onClick |
1984
+
1985
+ When set, the card will be clickable and will apply the selected style
1986
+
1987
+ ReactMouseEventHandler
1988
+
1989
+
1990
+
1991
+ | \- |
1992
+
1993
+ |
1994
+ | onKeyDown |
1995
+
1996
+ function
1997
+
1998
+
1999
+
2000
+ | \- | \- |
2001
+ | padding |
2002
+
2003
+ |
2004
+
2005
+ PaddingSize.Md
2006
+
2007
+ | Set object |
2008
+ | prepend |
2009
+
2010
+ Slot to the left of card content.
2011
+
2012
+ ReactReactNode
2013
+
2014
+
2015
+
2016
+ | \- | Set object |
2017
+ | role |
2018
+
2019
+ string
2020
+
2021
+
2022
+
2023
+ | \- | button |
2024
+ | tabIndex |
2025
+
2026
+ number
2027
+
2028
+
2029
+
2030
+ | \- | |
2031
+ | topRight |
2032
+
2033
+ Slot positioned to the top right of the card, often used for an icon or action menu
2034
+
2035
+ ReactReactNode
2036
+
2037
+
2038
+
2039
+ | \- | Set object |
2040
+
2041
+ ### Links and Buttons
2042
+
2043
+ To simplify the process of making the whole card clickable, you can use the `IressLinkCard` and `IressButtonCard` components. These components look exactly the same as the `IressCard` component, however their base tags are different, allowing you to use them exactly like you would a html link and button.
2044
+
2045
+ **Note:** These components replace the `button`, `clickable` and `href` props. You no longer need `button` and `clickable`, as these are automatically inferred. To mimic the `href` prop, simply change the component you are using to `IressLinkCard`.
2046
+
2047
+ [](./iframe.html?id=components-card-clickable--button-card)
2048
+
2049
+ I am a card with a button element
2050
+
2051
+ Hide codedrawOpen in CodeSandbox
2052
+
2053
+ <IressButtonCard
2054
+ onClick\={() \=> alert("Card clicked")}
2055
+ type\="button"
2056
+ \>
2057
+ I am a card with a button element
2058
+ </IressButtonCard\>
2059
+
2060
+ ```
2061
+
2062
+ #### Props
2063
+
2064
+ | Name | Description | Default | Control |
2065
+ | --- | --- | --- | --- |
2066
+ | children |
2067
+ Main body of the card
2068
+
2069
+ ReactReactNode
2070
+
2071
+
2072
+
2073
+ | \- | Set object |
2074
+ | footer |
2075
+
2076
+ Section that sticks to the bottom of the card
2077
+
2078
+ ReactReactNode
2079
+
2080
+
2081
+
2082
+ | \- | Set object |
2083
+ | heading |
2084
+
2085
+ Heading slot. Often used for a title or description.
2086
+
2087
+ ReactReactNode
2088
+
2089
+
2090
+
2091
+ | \- | Set object |
2092
+ | headingLevel |
2093
+
2094
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
2095
+
2096
+ HeadingLevel
2097
+
2098
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2099
+
2100
+ |
2101
+
2102
+ HeadingLevel.H2
2103
+
2104
+ | Set object |
2105
+ | headingText |
2106
+
2107
+ Text to be displayed in the card heading in the card header.
2108
+
2109
+ string
2110
+
2111
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2112
+
2113
+ | \- | Set string |
2114
+ | media |
2115
+
2116
+ Section (often for an image, table or chart) that appears before the heading
2117
+
2118
+ ReactReactNode
2119
+
2120
+
2121
+
2122
+ | \- | Set object |
2123
+ | onClick |
2124
+
2125
+ When set, the card will be clickable and will apply the selected style
2126
+
2127
+ ReactMouseEventHandler
2128
+
2129
+
2130
+
2131
+ | \- |
2132
+
2133
+ |
2134
+ | padding |
2135
+
2136
+ |
2137
+
2138
+ PaddingSize.Md
2139
+
2140
+ | Set object |
2141
+ | prepend |
2142
+
2143
+ Slot to the left of card content.
2144
+
2145
+ ReactReactNode
2146
+
2147
+
2148
+
2149
+ | \- | Set object |
2150
+ | topRight |
2151
+
2152
+ Slot positioned to the top right of the card, often used for an icon or action menu
2153
+
2154
+ ReactReactNode
2155
+
2156
+
2157
+
2158
+ | \- | Set object |
2159
+ | type |
2160
+
2161
+ string
2162
+
2163
+
2164
+
2165
+ | \- | button |
2166
+
2167
+ [](./iframe.html?id=components-card-clickable--link-card)
2168
+
2169
+ [I am a card with an anchor element](https://iress.com)
2170
+
2171
+ Hide codedrawOpen in CodeSandbox
2172
+
2173
+ <IressLinkCard
2174
+ href\="https://iress.com"
2175
+ target\="\_blank"
2176
+ \>
2177
+ I am a card with an anchor element
2178
+ </IressLinkCard\>
2179
+
2180
+ ```
2181
+
2182
+ #### Props
2183
+
2184
+ | Name | Description | Default | Control |
2185
+ | --- | --- | --- | --- |
2186
+ | children |
2187
+ Main body of the card
2188
+
2189
+ ReactReactNode
2190
+
2191
+
2192
+
2193
+ | \- | Set object |
2194
+ | footer |
2195
+
2196
+ Section that sticks to the bottom of the card
2197
+
2198
+ ReactReactNode
2199
+
2200
+
2201
+
2202
+ | \- | Set object |
2203
+ | heading |
2204
+
2205
+ Heading slot. Often used for a title or description.
2206
+
2207
+ ReactReactNode
2208
+
2209
+
2210
+
2211
+ | \- | Set object |
2212
+ | headingLevel |
2213
+
2214
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
2215
+
2216
+ HeadingLevel
2217
+
2218
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2219
+
2220
+ |
2221
+
2222
+ HeadingLevel.H2
2223
+
2224
+ | Set object |
2225
+ | headingText |
2226
+
2227
+ Text to be displayed in the card heading in the card header.
2228
+
2229
+ string
2230
+
2231
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2232
+
2233
+ | \- | Set string |
2234
+ | href |
2235
+
2236
+ string
2237
+
2238
+
2239
+
2240
+ | \- | https://iress.com |
2241
+ | media |
2242
+
2243
+ Section (often for an image, table or chart) that appears before the heading
2244
+
2245
+ ReactReactNode
2246
+
2247
+
2248
+
2249
+ | \- | Set object |
2250
+ | onClick |
2251
+
2252
+ When set, the card will be clickable and will apply the selected style
2253
+
2254
+ ReactMouseEventHandler
2255
+
2256
+
2257
+
2258
+ | \- | Set object |
2259
+ | padding |
2260
+
2261
+ |
2262
+
2263
+ PaddingSize.Md
2264
+
2265
+ | Set object |
2266
+ | prepend |
2267
+
2268
+ Slot to the left of card content.
2269
+
2270
+ ReactReactNode
2271
+
2272
+
2273
+
2274
+ | \- | Set object |
2275
+ | target |
2276
+
2277
+ string
2278
+
2279
+
2280
+
2281
+ | \- | \_blank |
2282
+ | topRight |
2283
+
2284
+ Slot positioned to the top right of the card, often used for an icon or action menu
2285
+
2286
+ ReactReactNode
2287
+
2288
+
2289
+
2290
+ | \- | Set object |