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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/generated/docs/components_components-alert-docs.md +492 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3485 -0
  3. package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +32 -14
  4. package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
  5. package/generated/docs/components_components-button-docs.md +2078 -0
  6. package/generated/docs/components_components-button-recipes-docs.md +37 -0
  7. package/generated/docs/components_components-buttongroup-docs.md +1045 -0
  8. package/generated/docs/components_components-card-docs.md +2276 -0
  9. package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +131 -14
  10. package/generated/docs/components_components-checkbox-docs.md +1054 -0
  11. package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1000 -81
  12. package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +101 -11
  13. package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
  14. package/generated/docs/components_components-combobox-docs.md +3767 -0
  15. package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
  16. package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
  17. package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +264 -33
  18. package/generated/docs/{components-field-docs.md → components_components-field-docs.md} +814 -120
  19. package/generated/docs/components_components-filter-docs.md +4080 -0
  20. package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1515 -353
  21. package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +170 -54
  22. package/generated/docs/components_components-hide-docs.md +293 -0
  23. package/generated/docs/components_components-icon-docs.md +1337 -0
  24. package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
  25. package/generated/docs/components_components-input-docs.md +1468 -0
  26. package/generated/docs/components_components-input-recipes-docs.md +367 -0
  27. package/generated/docs/components_components-inputcurrency-docs.md +432 -0
  28. package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +110 -17
  29. package/generated/docs/components_components-label-docs.md +323 -0
  30. package/generated/docs/components_components-menu-docs.md +2345 -0
  31. package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
  32. package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1625 -232
  33. package/generated/docs/components_components-navbar-docs.md +1847 -0
  34. package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +697 -39
  35. package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
  36. package/generated/docs/components_components-placeholder-docs.md +92 -0
  37. package/generated/docs/components_components-popover-docs.md +1641 -0
  38. package/generated/docs/{components-popover-recipes-docs.md → components_components-popover-recipes-docs.md} +347 -17
  39. package/generated/docs/components_components-progress-docs.md +115 -0
  40. package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +41 -32
  41. package/generated/docs/components_components-radio-docs.md +491 -0
  42. package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +943 -75
  43. package/generated/docs/components_components-readonly-docs.md +263 -0
  44. package/generated/docs/components_components-richselect-docs.md +6497 -0
  45. package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
  46. package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
  47. package/generated/docs/components_components-skeleton-docs.md +480 -0
  48. package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +50 -10
  49. package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
  50. package/generated/docs/components_components-slideout-docs.md +2262 -0
  51. package/generated/docs/components_components-slider-docs.md +1276 -0
  52. package/generated/docs/components_components-spinner-docs.md +82 -0
  53. package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
  54. package/generated/docs/components_components-table-docs.md +3651 -0
  55. package/generated/docs/components_components-tabset-docs.md +772 -0
  56. package/generated/docs/components_components-tabset-tab-docs.md +262 -0
  57. package/generated/docs/components_components-tag-docs.md +259 -0
  58. package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
  59. package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +181 -79
  60. package/generated/docs/components_components-toaster-toast-docs.md +634 -0
  61. package/generated/docs/components_components-toggle-docs.md +461 -0
  62. package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
  63. package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
  64. package/generated/docs/components_contact-us-docs.md +12 -0
  65. package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
  66. package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
  67. package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
  68. package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
  69. package/generated/docs/components_foundations-introduction-docs.md +15 -0
  70. package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
  71. package/generated/docs/components_foundations-typography-docs.md +608 -0
  72. package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
  73. package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
  74. package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
  75. package/generated/docs/components_get-started-develop-docs.md +84 -0
  76. package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
  77. package/generated/docs/components_introduction-docs.md +15 -0
  78. package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +711 -143
  79. package/generated/docs/components_resources-changelog-docs.md +4 -0
  80. package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
  81. package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
  82. package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
  83. package/generated/docs/guidelines.md +484 -200
  84. package/generated/docs/introduction-docs.md +19 -30
  85. package/package.json +41 -45
  86. package/generated/docs/components-alert-docs.md +0 -130
  87. package/generated/docs/components-autocomplete-docs.md +0 -754
  88. package/generated/docs/components-button-docs.md +0 -362
  89. package/generated/docs/components-button-recipes-docs.md +0 -76
  90. package/generated/docs/components-buttongroup-docs.md +0 -310
  91. package/generated/docs/components-card-docs.md +0 -494
  92. package/generated/docs/components-checkbox-docs.md +0 -193
  93. package/generated/docs/components-combobox-docs.md +0 -1016
  94. package/generated/docs/components-filter-docs.md +0 -1109
  95. package/generated/docs/components-hide-docs.md +0 -265
  96. package/generated/docs/components-icon-docs.md +0 -553
  97. package/generated/docs/components-input-docs.md +0 -335
  98. package/generated/docs/components-input-recipes-docs.md +0 -140
  99. package/generated/docs/components-inputcurrency-docs.md +0 -157
  100. package/generated/docs/components-label-docs.md +0 -135
  101. package/generated/docs/components-menu-docs.md +0 -704
  102. package/generated/docs/components-menu-menuitem-docs.md +0 -193
  103. package/generated/docs/components-navbar-docs.md +0 -291
  104. package/generated/docs/components-placeholder-docs.md +0 -27
  105. package/generated/docs/components-popover-docs.md +0 -464
  106. package/generated/docs/components-progress-docs.md +0 -104
  107. package/generated/docs/components-radio-docs.md +0 -107
  108. package/generated/docs/components-readonly-docs.md +0 -89
  109. package/generated/docs/components-richselect-docs.md +0 -2433
  110. package/generated/docs/components-skeleton-docs.md +0 -214
  111. package/generated/docs/components-slideout-docs.md +0 -538
  112. package/generated/docs/components-slider-docs.md +0 -346
  113. package/generated/docs/components-spinner-docs.md +0 -59
  114. package/generated/docs/components-table-ag-grid-docs.md +0 -1074
  115. package/generated/docs/components-table-docs.md +0 -1305
  116. package/generated/docs/components-tabset-docs.md +0 -341
  117. package/generated/docs/components-tabset-tab-docs.md +0 -86
  118. package/generated/docs/components-tag-docs.md +0 -115
  119. package/generated/docs/components-toaster-toast-docs.md +0 -157
  120. package/generated/docs/components-toggle-docs.md +0 -158
  121. package/generated/docs/contact-us-docs.md +0 -27
  122. package/generated/docs/extensions-editor-docs.md +0 -288
  123. package/generated/docs/extensions-editor-recipes-docs.md +0 -39
  124. package/generated/docs/foundations-introduction-docs.md +0 -17
  125. package/generated/docs/foundations-typography-docs.md +0 -191
  126. package/generated/docs/get-started-develop-docs.md +0 -209
  127. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  128. package/generated/docs/resources-changelog-docs.md +0 -6
  129. package/generated/docs/themes-available-themes-docs.md +0 -66
  130. package/generated/docs/themes-introduction-docs.md +0 -121
  131. package/generated/docs/themes-tokens-docs.md +0 -1200
  132. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -0,0 +1,2276 @@
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
+ ```
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-3nr4py"><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-3nr4py"><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
+ ```
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-3nr4py"><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-3nr4py"><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
+ ```
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-3nr4py"><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-3nr4py"><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
+ ```
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-3nr4py"><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-3nr4py"><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
+ ```
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-3nr4py"><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-3nr4py"><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
+ ```
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-3nr4py"><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-3nr4py"><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
+ RAW
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
+ ```
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-3nr4py"><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-3nr4py"><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
+ RAW
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
+ ```
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
+ RAW
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-3nr4py"><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-3nr4py"><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
+ ```
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-3nr4py"><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-3nr4py"><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
+ RAW
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
+ ```
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
+ RAW
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-3nr4py"><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-3nr4py"><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
+ ```
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
+ RAW
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-3nr4py"><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-3nr4py"><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
+ ```
1584
+
1585
+ export const CardAllSlots \= () \=> {
1586
+ const \[show, setShow\] \= useState({
1587
+ children: true,
1588
+ prepend: false,
1589
+ media: true,
1590
+ heading: true,
1591
+ topRight: true,
1592
+ footer: true,
1593
+ });
1594
+ const filteredArgs \= Object.fromEntries(
1595
+ Object.entries(supportedCardSlots).filter(
1596
+ (\[key\]) \=> show\[key as SupportedCardSlots\] || !(key in show),
1597
+ ),
1598
+ );
1599
+ return (
1600
+ <IressContainer\>
1601
+ <IressInline gutter\="md"\>
1602
+ {SUPPORTED\_CARD\_SLOTS.map((slot) \=> (
1603
+ <IressToggle
1604
+ key\={slot}
1605
+ checked\={show\[slot as never\]}
1606
+ onChange\={(checked) \=> {
1607
+ setShow({ ...show, \[slot\]: checked });
1608
+ }}
1609
+ \>
1610
+ {slot}
1611
+ </IressToggle\>
1612
+ ))}
1613
+ </IressInline\>
1614
+ <hr />
1615
+ <IressRow gutter\="md"\>
1616
+ <IressCol\>
1617
+ <IressCard {...filteredArgs} />
1618
+ </IressCol\>
1619
+ <IressCol\>
1620
+ <IressCard {...filteredArgs} />
1621
+ </IressCol\>
1622
+ <IressCol\>
1623
+ <IressCard {...filteredArgs} />
1624
+ </IressCol\>
1625
+ </IressRow\>
1626
+ </IressContainer\>
1627
+ );
1628
+ };
1629
+
1630
+ ```
1631
+
1632
+ #### Props
1633
+
1634
+ | Name | Description | Default | Control |
1635
+ | --- | --- | --- | --- |
1636
+ | children |
1637
+ Main body of the card
1638
+
1639
+ ReactReactNode
1640
+
1641
+
1642
+
1643
+ | \- | \- |
1644
+ | footer |
1645
+
1646
+ Section that sticks to the bottom of the card
1647
+
1648
+ ReactReactNode
1649
+
1650
+
1651
+
1652
+ | \- | \- |
1653
+ | heading |
1654
+
1655
+ Heading slot. Often used for a title or description.
1656
+
1657
+ ReactReactNode
1658
+
1659
+
1660
+
1661
+ | \- | \- |
1662
+ | headingLevel |
1663
+
1664
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1665
+
1666
+ HeadingLevel
1667
+
1668
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1669
+
1670
+ |
1671
+
1672
+ HeadingLevel.H2
1673
+
1674
+ | Set object |
1675
+ | headingText |
1676
+
1677
+ Text to be displayed in the card heading in the card header.
1678
+
1679
+ string
1680
+
1681
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1682
+
1683
+ | \- | Set string |
1684
+ | media |
1685
+
1686
+ Section (often for an image, table or chart) that appears before the heading
1687
+
1688
+ ReactReactNode
1689
+
1690
+
1691
+
1692
+ | \- | \- |
1693
+ | onClick |
1694
+
1695
+ When set, the card will be clickable and will apply the selected style
1696
+
1697
+ ReactMouseEventHandler
1698
+
1699
+
1700
+
1701
+ | \- | Set object |
1702
+ | padding |
1703
+
1704
+ |
1705
+
1706
+ PaddingSize.Md
1707
+
1708
+ | Set object |
1709
+ | prepend |
1710
+
1711
+ Slot to the left of card content.
1712
+
1713
+ ReactReactNode
1714
+
1715
+
1716
+
1717
+ | \- | \- |
1718
+ | topRight |
1719
+
1720
+ Slot positioned to the top right of the card, often used for an icon or action menu
1721
+
1722
+ ReactReactNode
1723
+
1724
+
1725
+
1726
+ | \- | \- |
1727
+
1728
+ Clickable cards
1729
+ ---------------
1730
+
1731
+ Note: The `clickable` prop has been deprecated in favour of using component variations, or the `onClick` prop.
1732
+
1733
+ ### Heading only
1734
+
1735
+ 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.
1736
+
1737
+ [](./iframe.html?id=components-card-clickable--heading-only)
1738
+
1739
+ [Clickable heading](https://iress.com)
1740
+ --------------------------------------
1741
+
1742
+ I'm a card with a clickable heading. NEVER use me when the whole card is clickable.
1743
+
1744
+ ```
1745
+
1746
+ <IressCard heading\={<h2\><a href\="https://iress.com"\>Clickable heading</a\></h2\>}\>
1747
+ I'm a card with a clickable heading. NEVER use me when the whole card is clickable.
1748
+ </IressCard\>
1749
+
1750
+ ```
1751
+
1752
+ #### Props
1753
+
1754
+ | Name | Description | Default | Control |
1755
+ | --- | --- | --- | --- |
1756
+ | children |
1757
+ Main body of the card
1758
+
1759
+ ReactReactNode
1760
+
1761
+
1762
+
1763
+ | \- |
1764
+
1765
+ "I'm a card with a clickable heading. NEVER use me when the whole card is clickable."
1766
+
1767
+ |
1768
+ | footer |
1769
+
1770
+ Section that sticks to the bottom of the card
1771
+
1772
+ ReactReactNode
1773
+
1774
+
1775
+
1776
+ | \- | Set object |
1777
+ | heading |
1778
+
1779
+ Heading slot. Often used for a title or description.
1780
+
1781
+ ReactReactNode
1782
+
1783
+
1784
+
1785
+ | \- |
1786
+
1787
+ RAW
1788
+
1789
+ heading :
1790
+
1791
+ {
1792
+
1793
+ * $$typeof : Symbol(react.transitional.element)
1794
+ * type : "h2"
1795
+ * key : null
1796
+ * props :
1797
+
1798
+ {...} 1 key
1799
+
1800
+ * \_owner : null
1801
+ * \_store :
1802
+
1803
+ {...} 0 keys
1804
+
1805
+
1806
+ }
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+ |
1815
+ | headingLevel |
1816
+
1817
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1818
+
1819
+ HeadingLevel
1820
+
1821
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1822
+
1823
+ |
1824
+
1825
+ HeadingLevel.H2
1826
+
1827
+ | Set object |
1828
+ | headingText |
1829
+
1830
+ Text to be displayed in the card heading in the card header.
1831
+
1832
+ string
1833
+
1834
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1835
+
1836
+ | \- | Set string |
1837
+ | media |
1838
+
1839
+ Section (often for an image, table or chart) that appears before the heading
1840
+
1841
+ ReactReactNode
1842
+
1843
+
1844
+
1845
+ | \- | Set object |
1846
+ | onClick |
1847
+
1848
+ When set, the card will be clickable and will apply the selected style
1849
+
1850
+ ReactMouseEventHandler
1851
+
1852
+
1853
+
1854
+ | \- | Set object |
1855
+ | padding |
1856
+
1857
+ |
1858
+
1859
+ PaddingSize.Md
1860
+
1861
+ | Set object |
1862
+ | prepend |
1863
+
1864
+ Slot to the left of card content.
1865
+
1866
+ ReactReactNode
1867
+
1868
+
1869
+
1870
+ | \- | Set object |
1871
+ | topRight |
1872
+
1873
+ Slot positioned to the top right of the card, often used for an icon or action menu
1874
+
1875
+ ReactReactNode
1876
+
1877
+
1878
+
1879
+ | \- | Set object |
1880
+
1881
+ ### Whole card
1882
+
1883
+ The whole card can be made clickable by passing an `onClick` prop. All the appropriate styling will be added as well.
1884
+
1885
+ 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.
1886
+
1887
+ [](./iframe.html?id=components-card-clickable--whole-card)
1888
+
1889
+ I am a card with an onClick handler. Click me to see what happens.
1890
+
1891
+ ```
1892
+
1893
+ <IressCard
1894
+ onClick\={() \=> alert("Card clicked")}
1895
+ onKeyDown\={() \=> alert("Key down on card (for keyboard users)")}
1896
+ role\="button"
1897
+ tabIndex\={0}
1898
+ \>
1899
+ I am a card with an onClick handler. Click me to see what happens.
1900
+ </IressCard\>
1901
+
1902
+ ```
1903
+
1904
+ #### Props
1905
+
1906
+ | Name | Description | Default | Control |
1907
+ | --- | --- | --- | --- |
1908
+ | children |
1909
+ Main body of the card
1910
+
1911
+ ReactReactNode
1912
+
1913
+
1914
+
1915
+ | \- |
1916
+
1917
+ "I am a card with an onClick handler. Click me to see what happens."
1918
+
1919
+ |
1920
+ | footer |
1921
+
1922
+ Section that sticks to the bottom of the card
1923
+
1924
+ ReactReactNode
1925
+
1926
+
1927
+
1928
+ | \- | Set object |
1929
+ | heading |
1930
+
1931
+ Heading slot. Often used for a title or description.
1932
+
1933
+ ReactReactNode
1934
+
1935
+
1936
+
1937
+ | \- | Set object |
1938
+ | headingLevel |
1939
+
1940
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
1941
+
1942
+ HeadingLevel
1943
+
1944
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1945
+
1946
+ |
1947
+
1948
+ HeadingLevel.H2
1949
+
1950
+ | Set object |
1951
+ | headingText |
1952
+
1953
+ Text to be displayed in the card heading in the card header.
1954
+
1955
+ string
1956
+
1957
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
1958
+
1959
+ | \- | Set string |
1960
+ | media |
1961
+
1962
+ Section (often for an image, table or chart) that appears before the heading
1963
+
1964
+ ReactReactNode
1965
+
1966
+
1967
+
1968
+ | \- | Set object |
1969
+ | onClick |
1970
+
1971
+ When set, the card will be clickable and will apply the selected style
1972
+
1973
+ ReactMouseEventHandler
1974
+
1975
+
1976
+
1977
+ | \- |
1978
+
1979
+ |
1980
+ | onKeyDown |
1981
+
1982
+ function
1983
+
1984
+
1985
+
1986
+ | \- | \- |
1987
+ | padding |
1988
+
1989
+ |
1990
+
1991
+ PaddingSize.Md
1992
+
1993
+ | Set object |
1994
+ | prepend |
1995
+
1996
+ Slot to the left of card content.
1997
+
1998
+ ReactReactNode
1999
+
2000
+
2001
+
2002
+ | \- | Set object |
2003
+ | role |
2004
+
2005
+ string
2006
+
2007
+
2008
+
2009
+ | \- | button |
2010
+ | tabIndex |
2011
+
2012
+ number
2013
+
2014
+
2015
+
2016
+ | \- | |
2017
+ | topRight |
2018
+
2019
+ Slot positioned to the top right of the card, often used for an icon or action menu
2020
+
2021
+ ReactReactNode
2022
+
2023
+
2024
+
2025
+ | \- | Set object |
2026
+
2027
+ ### Links and Buttons
2028
+
2029
+ 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.
2030
+
2031
+ **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`.
2032
+
2033
+ [](./iframe.html?id=components-card-clickable--button-card)
2034
+
2035
+ I am a card with a button element
2036
+
2037
+ ```
2038
+
2039
+ <IressButtonCard
2040
+ onClick\={() \=> alert("Card clicked")}
2041
+ type\="button"
2042
+ \>
2043
+ I am a card with a button element
2044
+ </IressButtonCard\>
2045
+
2046
+ ```
2047
+
2048
+ #### Props
2049
+
2050
+ | Name | Description | Default | Control |
2051
+ | --- | --- | --- | --- |
2052
+ | children |
2053
+ Main body of the card
2054
+
2055
+ ReactReactNode
2056
+
2057
+
2058
+
2059
+ | \- | Set object |
2060
+ | footer |
2061
+
2062
+ Section that sticks to the bottom of the card
2063
+
2064
+ ReactReactNode
2065
+
2066
+
2067
+
2068
+ | \- | Set object |
2069
+ | heading |
2070
+
2071
+ Heading slot. Often used for a title or description.
2072
+
2073
+ ReactReactNode
2074
+
2075
+
2076
+
2077
+ | \- | Set object |
2078
+ | headingLevel |
2079
+
2080
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
2081
+
2082
+ HeadingLevel
2083
+
2084
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2085
+
2086
+ |
2087
+
2088
+ HeadingLevel.H2
2089
+
2090
+ | Set object |
2091
+ | headingText |
2092
+
2093
+ Text to be displayed in the card heading in the card header.
2094
+
2095
+ string
2096
+
2097
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2098
+
2099
+ | \- | Set string |
2100
+ | media |
2101
+
2102
+ Section (often for an image, table or chart) that appears before the heading
2103
+
2104
+ ReactReactNode
2105
+
2106
+
2107
+
2108
+ | \- | Set object |
2109
+ | onClick |
2110
+
2111
+ When set, the card will be clickable and will apply the selected style
2112
+
2113
+ ReactMouseEventHandler
2114
+
2115
+
2116
+
2117
+ | \- |
2118
+
2119
+ |
2120
+ | padding |
2121
+
2122
+ |
2123
+
2124
+ PaddingSize.Md
2125
+
2126
+ | Set object |
2127
+ | prepend |
2128
+
2129
+ Slot to the left of card content.
2130
+
2131
+ ReactReactNode
2132
+
2133
+
2134
+
2135
+ | \- | Set object |
2136
+ | topRight |
2137
+
2138
+ Slot positioned to the top right of the card, often used for an icon or action menu
2139
+
2140
+ ReactReactNode
2141
+
2142
+
2143
+
2144
+ | \- | Set object |
2145
+ | type |
2146
+
2147
+ string
2148
+
2149
+
2150
+
2151
+ | \- | button |
2152
+
2153
+ [](./iframe.html?id=components-card-clickable--link-card)
2154
+
2155
+ [I am a card with an anchor element](https://iress.com)
2156
+
2157
+ ```
2158
+
2159
+ <IressLinkCard
2160
+ href\="https://iress.com"
2161
+ target\="\_blank"
2162
+ \>
2163
+ I am a card with an anchor element
2164
+ </IressLinkCard\>
2165
+
2166
+ ```
2167
+
2168
+ #### Props
2169
+
2170
+ | Name | Description | Default | Control |
2171
+ | --- | --- | --- | --- |
2172
+ | children |
2173
+ Main body of the card
2174
+
2175
+ ReactReactNode
2176
+
2177
+
2178
+
2179
+ | \- | Set object |
2180
+ | footer |
2181
+
2182
+ Section that sticks to the bottom of the card
2183
+
2184
+ ReactReactNode
2185
+
2186
+
2187
+
2188
+ | \- | Set object |
2189
+ | heading |
2190
+
2191
+ Heading slot. Often used for a title or description.
2192
+
2193
+ ReactReactNode
2194
+
2195
+
2196
+
2197
+ | \- | Set object |
2198
+ | headingLevel |
2199
+
2200
+ Level of heading for markup, to ensure correct hierarchy (H2 - H6).
2201
+
2202
+ HeadingLevel
2203
+
2204
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2205
+
2206
+ |
2207
+
2208
+ HeadingLevel.H2
2209
+
2210
+ | Set object |
2211
+ | headingText |
2212
+
2213
+ Text to be displayed in the card heading in the card header.
2214
+
2215
+ string
2216
+
2217
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `heading` instead.</td></tr></tbody></table>
2218
+
2219
+ | \- | Set string |
2220
+ | href |
2221
+
2222
+ string
2223
+
2224
+
2225
+
2226
+ | \- | https://iress.com |
2227
+ | media |
2228
+
2229
+ Section (often for an image, table or chart) that appears before the heading
2230
+
2231
+ ReactReactNode
2232
+
2233
+
2234
+
2235
+ | \- | Set object |
2236
+ | onClick |
2237
+
2238
+ When set, the card will be clickable and will apply the selected style
2239
+
2240
+ ReactMouseEventHandler
2241
+
2242
+
2243
+
2244
+ | \- | Set object |
2245
+ | padding |
2246
+
2247
+ |
2248
+
2249
+ PaddingSize.Md
2250
+
2251
+ | Set object |
2252
+ | prepend |
2253
+
2254
+ Slot to the left of card content.
2255
+
2256
+ ReactReactNode
2257
+
2258
+
2259
+
2260
+ | \- | Set object |
2261
+ | target |
2262
+
2263
+ string
2264
+
2265
+
2266
+
2267
+ | \- | \_blank |
2268
+ | topRight |
2269
+
2270
+ Slot positioned to the top right of the card, often used for an icon or action menu
2271
+
2272
+ ReactReactNode
2273
+
2274
+
2275
+
2276
+ | \- | Set object |