@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,1040 @@
1
+ Checkbox
2
+ ========
3
+
4
+ Overview
5
+ --------
6
+
7
+ Checkboxes are used to let a user select one or more options for a limited number of choices. Also, works as a child of `IressCheckboxGroup`
8
+
9
+ [](./iframe.html?id=components-checkbox--default)
10
+
11
+ A checkbox
12
+
13
+ Hide codedrawOpen in CodeSandbox
14
+
15
+ <IressCheckbox\>
16
+ A checkbox
17
+ </IressCheckbox\>
18
+
19
+ ```
20
+
21
+ Props
22
+ -----
23
+
24
+ IressCheckboxIressCheckboxMark
25
+
26
+ | Name | Description | Default | Control |
27
+ | --- | --- | --- | --- |
28
+ | checked |
29
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
30
+
31
+ boolean
32
+
33
+
34
+
35
+ | \- | Set boolean |
36
+ | children |
37
+
38
+ The checkbox content
39
+
40
+ ReactReactNode
41
+
42
+
43
+
44
+ | \- |
45
+
46
+ "A checkbox"
47
+
48
+ |
49
+ | defaultChecked |
50
+
51
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
52
+
53
+ boolean
54
+
55
+
56
+
57
+ | \- | Set boolean |
58
+ | hiddenControl |
59
+
60
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
61
+
62
+ boolean
63
+
64
+
65
+
66
+ | \- | Set boolean |
67
+ | hiddenLabel |
68
+
69
+ Visually hides the label (if set), label will still be read out by screenreaders.
70
+
71
+ boolean
72
+
73
+
74
+
75
+ | \- | Set boolean |
76
+ | indeterminate |
77
+
78
+ If true, the checkbox will visually appear as indeterminate.
79
+
80
+ boolean
81
+
82
+
83
+
84
+ | \- | Set boolean |
85
+ | name |
86
+
87
+ The name of the control, which is submitted with the form data.
88
+
89
+ string
90
+
91
+
92
+
93
+ | \- | Set string |
94
+ | onBlur |
95
+
96
+ Emitted when the checkbox loses focus.
97
+
98
+ (e: React.FocusEvent<HTMLInputElement>) => void
99
+
100
+ | \- | \- |
101
+ | onChange |
102
+
103
+ Emitted when the checkbox value changes.
104
+
105
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
106
+
107
+ | \- | \- |
108
+ | onFocus |
109
+
110
+ Emitted when the checkbox gains focus.
111
+
112
+ (e: React.FocusEvent<HTMLInputElement>) => void
113
+
114
+ | \- | \- |
115
+ | required |
116
+
117
+ If `true`, the checkbox is a required field and will be validated as such.
118
+
119
+ boolean
120
+
121
+
122
+
123
+ | \- | Set boolean |
124
+ | touch |
125
+
126
+ Add the button-like border and padding to checkbox when `touch` is true.
127
+
128
+ boolean
129
+
130
+
131
+
132
+ | \- | Set boolean |
133
+ | value |
134
+
135
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
136
+
137
+ FormControlValue
138
+
139
+
140
+
141
+ | \- | Set object |
142
+
143
+ Usage
144
+ -----
145
+
146
+ ### Checked
147
+
148
+ For single checkboxes in controlled mode the `checked` prop sets the checked state.
149
+
150
+ When used as part of an `IressCheckboxGroup`, the `checked` prop will be ignored. Instead, the `value` prop on the `IressCheckboxGroup` will determine the checked state of each checkbox. See the [checkbox group documentation](?path=/docs/components-checkboxgroup--docs) for more details.
151
+
152
+ [](./iframe.html?id=components-checkbox--checked)
153
+
154
+ A checkbox which is checked and in controlled mode
155
+
156
+ Hide codedrawOpen in CodeSandbox
157
+
158
+ <IressCheckbox checked\>
159
+ A checkbox which is checked and in controlled mode
160
+ </IressCheckbox\>
161
+
162
+ ```
163
+
164
+ #### Props
165
+
166
+ IressCheckboxIressCheckboxMark
167
+
168
+ | Name | Description | Default | Control |
169
+ | --- | --- | --- | --- |
170
+ | checked |
171
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
172
+
173
+ boolean
174
+
175
+
176
+
177
+ | \- | FalseTrue |
178
+ | children |
179
+
180
+ The checkbox content
181
+
182
+ ReactReactNode
183
+
184
+
185
+
186
+ | \- |
187
+
188
+ "A checkbox which is checked and in controlled mode"
189
+
190
+ |
191
+ | defaultChecked |
192
+
193
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
194
+
195
+ boolean
196
+
197
+
198
+
199
+ | \- | Set boolean |
200
+ | hiddenControl |
201
+
202
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
203
+
204
+ boolean
205
+
206
+
207
+
208
+ | \- | Set boolean |
209
+ | hiddenLabel |
210
+
211
+ Visually hides the label (if set), label will still be read out by screenreaders.
212
+
213
+ boolean
214
+
215
+
216
+
217
+ | \- | Set boolean |
218
+ | indeterminate |
219
+
220
+ If true, the checkbox will visually appear as indeterminate.
221
+
222
+ boolean
223
+
224
+
225
+
226
+ | \- | Set boolean |
227
+ | name |
228
+
229
+ The name of the control, which is submitted with the form data.
230
+
231
+ string
232
+
233
+
234
+
235
+ | \- | Set string |
236
+ | onBlur |
237
+
238
+ Emitted when the checkbox loses focus.
239
+
240
+ (e: React.FocusEvent<HTMLInputElement>) => void
241
+
242
+ | \- | \- |
243
+ | onChange |
244
+
245
+ Emitted when the checkbox value changes.
246
+
247
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
248
+
249
+ | \- | \- |
250
+ | onFocus |
251
+
252
+ Emitted when the checkbox gains focus.
253
+
254
+ (e: React.FocusEvent<HTMLInputElement>) => void
255
+
256
+ | \- | \- |
257
+ | required |
258
+
259
+ If `true`, the checkbox is a required field and will be validated as such.
260
+
261
+ boolean
262
+
263
+
264
+
265
+ | \- | Set boolean |
266
+ | touch |
267
+
268
+ Add the button-like border and padding to checkbox when `touch` is true.
269
+
270
+ boolean
271
+
272
+
273
+
274
+ | \- | Set boolean |
275
+ | value |
276
+
277
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
278
+
279
+ FormControlValue
280
+
281
+
282
+
283
+ | \- | Set object |
284
+
285
+ ### Default Checked
286
+
287
+ For single checkboxes in uncontrolled mode the `defaultChecked` prop sets the default checked state.
288
+
289
+ [](./iframe.html?id=components-checkbox--default-checked)
290
+
291
+ A checkbox which is initially checked
292
+
293
+ Hide codedrawOpen in CodeSandbox
294
+
295
+ <IressCheckbox defaultChecked\>
296
+ A checkbox which is initially checked
297
+ </IressCheckbox\>
298
+
299
+ ```
300
+
301
+ #### Props
302
+
303
+ IressCheckboxIressCheckboxMark
304
+
305
+ | Name | Description | Default | Control |
306
+ | --- | --- | --- | --- |
307
+ | checked |
308
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
309
+
310
+ boolean
311
+
312
+
313
+
314
+ | \- | Set boolean |
315
+ | children |
316
+
317
+ The checkbox content
318
+
319
+ ReactReactNode
320
+
321
+
322
+
323
+ | \- |
324
+
325
+ "A checkbox which is initially checked"
326
+
327
+ |
328
+ | defaultChecked |
329
+
330
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
331
+
332
+ boolean
333
+
334
+
335
+
336
+ | \- | FalseTrue |
337
+ | hiddenControl |
338
+
339
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
340
+
341
+ boolean
342
+
343
+
344
+
345
+ | \- | Set boolean |
346
+ | hiddenLabel |
347
+
348
+ Visually hides the label (if set), label will still be read out by screenreaders.
349
+
350
+ boolean
351
+
352
+
353
+
354
+ | \- | Set boolean |
355
+ | indeterminate |
356
+
357
+ If true, the checkbox will visually appear as indeterminate.
358
+
359
+ boolean
360
+
361
+
362
+
363
+ | \- | Set boolean |
364
+ | name |
365
+
366
+ The name of the control, which is submitted with the form data.
367
+
368
+ string
369
+
370
+
371
+
372
+ | \- | Set string |
373
+ | onBlur |
374
+
375
+ Emitted when the checkbox loses focus.
376
+
377
+ (e: React.FocusEvent<HTMLInputElement>) => void
378
+
379
+ | \- | \- |
380
+ | onChange |
381
+
382
+ Emitted when the checkbox value changes.
383
+
384
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
385
+
386
+ | \- | \- |
387
+ | onFocus |
388
+
389
+ Emitted when the checkbox gains focus.
390
+
391
+ (e: React.FocusEvent<HTMLInputElement>) => void
392
+
393
+ | \- | \- |
394
+ | required |
395
+
396
+ If `true`, the checkbox is a required field and will be validated as such.
397
+
398
+ boolean
399
+
400
+
401
+
402
+ | \- | Set boolean |
403
+ | touch |
404
+
405
+ Add the button-like border and padding to checkbox when `touch` is true.
406
+
407
+ boolean
408
+
409
+
410
+
411
+ | \- | Set boolean |
412
+ | value |
413
+
414
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
415
+
416
+ FormControlValue
417
+
418
+
419
+
420
+ | \- | Set object |
421
+
422
+ ### Indeterminate
423
+
424
+ The `indeterminate` prop sets the checkbox appearance to an indeterminate dash until it is clicked. It has no impact on the checkbox behavior beyond this purely visual indicator.
425
+
426
+ [](./iframe.html?id=components-checkbox--indeterminate)
427
+
428
+ A checkbox which is initially in an indeterminate state
429
+
430
+ Hide codedrawOpen in CodeSandbox
431
+
432
+ <IressCheckbox indeterminate\>
433
+ A checkbox which is initially in an indeterminate state
434
+ </IressCheckbox\>
435
+
436
+ ```
437
+
438
+ #### Props
439
+
440
+ IressCheckboxIressCheckboxMark
441
+
442
+ | Name | Description | Default | Control |
443
+ | --- | --- | --- | --- |
444
+ | checked |
445
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
446
+
447
+ boolean
448
+
449
+
450
+
451
+ | \- | Set boolean |
452
+ | children |
453
+
454
+ The checkbox content
455
+
456
+ ReactReactNode
457
+
458
+
459
+
460
+ | \- |
461
+
462
+ "A checkbox which is initially in an indeterminate state"
463
+
464
+ |
465
+ | defaultChecked |
466
+
467
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
468
+
469
+ boolean
470
+
471
+
472
+
473
+ | \- | Set boolean |
474
+ | hiddenControl |
475
+
476
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
477
+
478
+ boolean
479
+
480
+
481
+
482
+ | \- | Set boolean |
483
+ | hiddenLabel |
484
+
485
+ Visually hides the label (if set), label will still be read out by screenreaders.
486
+
487
+ boolean
488
+
489
+
490
+
491
+ | \- | Set boolean |
492
+ | indeterminate |
493
+
494
+ If true, the checkbox will visually appear as indeterminate.
495
+
496
+ boolean
497
+
498
+
499
+
500
+ | \- | FalseTrue |
501
+ | name |
502
+
503
+ The name of the control, which is submitted with the form data.
504
+
505
+ string
506
+
507
+
508
+
509
+ | \- | Set string |
510
+ | onBlur |
511
+
512
+ Emitted when the checkbox loses focus.
513
+
514
+ (e: React.FocusEvent<HTMLInputElement>) => void
515
+
516
+ | \- | \- |
517
+ | onChange |
518
+
519
+ Emitted when the checkbox value changes.
520
+
521
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
522
+
523
+ | \- | \- |
524
+ | onFocus |
525
+
526
+ Emitted when the checkbox gains focus.
527
+
528
+ (e: React.FocusEvent<HTMLInputElement>) => void
529
+
530
+ | \- | \- |
531
+ | required |
532
+
533
+ If `true`, the checkbox is a required field and will be validated as such.
534
+
535
+ boolean
536
+
537
+
538
+
539
+ | \- | Set boolean |
540
+ | touch |
541
+
542
+ Add the button-like border and padding to checkbox when `touch` is true.
543
+
544
+ boolean
545
+
546
+
547
+
548
+ | \- | Set boolean |
549
+ | value |
550
+
551
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
552
+
553
+ FormControlValue
554
+
555
+
556
+
557
+ | \- | Set object |
558
+
559
+ ### Hidden Label
560
+
561
+ It is very rare to want to render a checkbox without a visible label. However, one case where you might want to is within tables.
562
+
563
+ When using a checkbox without a visible label, you must supply a label and apply the `hiddenLabel` property to still be accessible by screen readers.
564
+
565
+ It is also important to not hide the table headers.
566
+
567
+ [](./iframe.html?id=components-checkbox--with-table-data)
568
+
569
+ List of investments
570
+ | Select | Name | Date | Cost |
571
+ | --- | --- | --- | --- |
572
+ |
573
+ Toggle row
574
+
575
+ | Artemis Fund Managers Limited | 2019-09-23 | 23898.12 |
576
+ |
577
+
578
+ Toggle row
579
+
580
+ | CASH.CASH | 2020-06-28 | 49751.43 |
581
+
582
+ Hide codedrawOpen in CodeSandbox
583
+
584
+ <ForwardedTable
585
+ caption\="List of investments"
586
+ columns\={\[
587
+ {
588
+ format: (value: boolean) \=> <IressCheckbox defaultChecked\={value} hiddenLabel\>Toggle row</IressCheckbox\>,
589
+ key: 'select',
590
+ label: 'Select',
591
+ sort: true
592
+ },
593
+ {
594
+ key: 'name',
595
+ label: 'Name'
596
+ },
597
+ {
598
+ key: 'date',
599
+ label: 'Date'
600
+ },
601
+ {
602
+ key: 'cost',
603
+ label: 'Cost'
604
+ }
605
+ \]}
606
+ rows\={\[
607
+ {
608
+ cost: 23898.12,
609
+ date: '2019-09-23',
610
+ name: 'Artemis Fund Managers Limited',
611
+ select: false
612
+ },
613
+ {
614
+ cost: 49751.43,
615
+ date: '2020-06-28',
616
+ name: 'CASH.CASH',
617
+ select: true
618
+ }
619
+ \]}
620
+ />
621
+
622
+ ```
623
+
624
+ #### Props
625
+
626
+ IressCheckboxIressCheckboxMark
627
+
628
+ | Name | Description | Default | Control |
629
+ | --- | --- | --- | --- |
630
+ | checked |
631
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
632
+
633
+ boolean
634
+
635
+
636
+
637
+ | \- | Set boolean |
638
+ | children |
639
+
640
+ The checkbox content
641
+
642
+ ReactReactNode
643
+
644
+
645
+
646
+ | \- |
647
+
648
+ "Toggle row"
649
+
650
+ |
651
+ | defaultChecked |
652
+
653
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
654
+
655
+ boolean
656
+
657
+
658
+
659
+ | \- | Set boolean |
660
+ | hiddenControl |
661
+
662
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
663
+
664
+ boolean
665
+
666
+
667
+
668
+ | \- | Set boolean |
669
+ | hiddenLabel |
670
+
671
+ Visually hides the label (if set), label will still be read out by screenreaders.
672
+
673
+ boolean
674
+
675
+
676
+
677
+ | \- | FalseTrue |
678
+ | indeterminate |
679
+
680
+ If true, the checkbox will visually appear as indeterminate.
681
+
682
+ boolean
683
+
684
+
685
+
686
+ | \- | Set boolean |
687
+ | name |
688
+
689
+ The name of the control, which is submitted with the form data.
690
+
691
+ string
692
+
693
+
694
+
695
+ | \- | Set string |
696
+ | onBlur |
697
+
698
+ Emitted when the checkbox loses focus.
699
+
700
+ (e: React.FocusEvent<HTMLInputElement>) => void
701
+
702
+ | \- | \- |
703
+ | onChange |
704
+
705
+ Emitted when the checkbox value changes.
706
+
707
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
708
+
709
+ | \- | \- |
710
+ | onFocus |
711
+
712
+ Emitted when the checkbox gains focus.
713
+
714
+ (e: React.FocusEvent<HTMLInputElement>) => void
715
+
716
+ | \- | \- |
717
+ | required |
718
+
719
+ If `true`, the checkbox is a required field and will be validated as such.
720
+
721
+ boolean
722
+
723
+
724
+
725
+ | \- | Set boolean |
726
+ | touch |
727
+
728
+ Add the button-like border and padding to checkbox when `touch` is true.
729
+
730
+ boolean
731
+
732
+
733
+
734
+ | \- | Set boolean |
735
+ | value |
736
+
737
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
738
+
739
+ FormControlValue
740
+
741
+
742
+
743
+ | \- | Set object |
744
+
745
+ ### Readonly
746
+
747
+ The `readOnly` prop changes how the checkbox is rendered. It will only render if the checkbox is checked (alongside a hidden input that contains the `value` if it was set), otherwise it will not be rendered.
748
+
749
+ It is understandable that this may not be the desired behavior for all use cases. If you need a checkbox that is not editable, but still visible, simply do not set the `readonly` prop and set the `checked` prop instead.
750
+
751
+ [](./iframe.html?id=components-checkbox--readonly)
752
+
753
+ I agree to the terms and conditions
754
+
755
+ Hide codedrawOpen in CodeSandbox
756
+
757
+ <IressStack\>
758
+ <IressCheckbox
759
+ defaultChecked
760
+ readOnly
761
+ value\="readonly"
762
+ \>
763
+ I agree to the terms and conditions </IressCheckbox\>
764
+ <IressCheckbox
765
+ readOnly
766
+ value\="readonly"
767
+ \>
768
+ I agree to the terms and conditions </IressCheckbox\>
769
+ </IressStack\>
770
+
771
+ ```
772
+
773
+ #### Props
774
+
775
+ IressCheckboxIressCheckboxMark
776
+
777
+ | Name | Description | Default | Control |
778
+ | --- | --- | --- | --- |
779
+ | checked |
780
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
781
+
782
+ boolean
783
+
784
+
785
+
786
+ | \- | \- |
787
+ | children |
788
+
789
+ The checkbox content
790
+
791
+ ReactReactNode
792
+
793
+
794
+
795
+ | \- |
796
+
797
+ "I agree to the terms and conditions"
798
+
799
+ |
800
+ | defaultChecked |
801
+
802
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
803
+
804
+ boolean
805
+
806
+
807
+
808
+ | \- | Set boolean |
809
+ | hiddenControl |
810
+
811
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
812
+
813
+ boolean
814
+
815
+
816
+
817
+ | \- | Set boolean |
818
+ | hiddenLabel |
819
+
820
+ Visually hides the label (if set), label will still be read out by screenreaders.
821
+
822
+ boolean
823
+
824
+
825
+
826
+ | \- | Set boolean |
827
+ | indeterminate |
828
+
829
+ If true, the checkbox will visually appear as indeterminate.
830
+
831
+ boolean
832
+
833
+
834
+
835
+ | \- | Set boolean |
836
+ | name |
837
+
838
+ The name of the control, which is submitted with the form data.
839
+
840
+ string
841
+
842
+
843
+
844
+ | \- | Set string |
845
+ | onBlur |
846
+
847
+ Emitted when the checkbox loses focus.
848
+
849
+ (e: React.FocusEvent<HTMLInputElement>) => void
850
+
851
+ | \- | \- |
852
+ | onChange |
853
+
854
+ Emitted when the checkbox value changes.
855
+
856
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
857
+
858
+ | \- | \- |
859
+ | onFocus |
860
+
861
+ Emitted when the checkbox gains focus.
862
+
863
+ (e: React.FocusEvent<HTMLInputElement>) => void
864
+
865
+ | \- | \- |
866
+ | readOnly |
867
+
868
+ boolean
869
+
870
+
871
+
872
+ | \- | \- |
873
+ | required |
874
+
875
+ If `true`, the checkbox is a required field and will be validated as such.
876
+
877
+ boolean
878
+
879
+
880
+
881
+ | \- | Set boolean |
882
+ | touch |
883
+
884
+ Add the button-like border and padding to checkbox when `touch` is true.
885
+
886
+ boolean
887
+
888
+
889
+
890
+ | \- | Set boolean |
891
+ | value |
892
+
893
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
894
+
895
+ FormControlValue
896
+
897
+
898
+
899
+ | \- |
900
+
901
+ "readonly"
902
+
903
+ |
904
+
905
+ ### Touch
906
+
907
+ The `touch` prop adds the button-like border and padding to checkbox.
908
+
909
+ [](./iframe.html?id=components-checkbox--touch)
910
+
911
+ Checkbox with touch styles
912
+
913
+ Hide codedrawOpen in CodeSandbox
914
+
915
+ <IressCheckbox touch\>
916
+ Checkbox with touch styles
917
+ </IressCheckbox\>
918
+
919
+ ```
920
+
921
+ #### Props
922
+
923
+ IressCheckboxIressCheckboxMark
924
+
925
+ | Name | Description | Default | Control |
926
+ | --- | --- | --- | --- |
927
+ | checked |
928
+ If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
929
+
930
+ boolean
931
+
932
+
933
+
934
+ | \- | Set boolean |
935
+ | children |
936
+
937
+ The checkbox content
938
+
939
+ ReactReactNode
940
+
941
+
942
+
943
+ | \- |
944
+
945
+ "Checkbox with touch styles"
946
+
947
+ |
948
+ | defaultChecked |
949
+
950
+ If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
951
+
952
+ boolean
953
+
954
+
955
+
956
+ | \- | Set boolean |
957
+ | hiddenControl |
958
+
959
+ Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
960
+
961
+ boolean
962
+
963
+
964
+
965
+ | \- | Set boolean |
966
+ | hiddenLabel |
967
+
968
+ Visually hides the label (if set), label will still be read out by screenreaders.
969
+
970
+ boolean
971
+
972
+
973
+
974
+ | \- | Set boolean |
975
+ | indeterminate |
976
+
977
+ If true, the checkbox will visually appear as indeterminate.
978
+
979
+ boolean
980
+
981
+
982
+
983
+ | \- | Set boolean |
984
+ | name |
985
+
986
+ The name of the control, which is submitted with the form data.
987
+
988
+ string
989
+
990
+
991
+
992
+ | \- | Set string |
993
+ | onBlur |
994
+
995
+ Emitted when the checkbox loses focus.
996
+
997
+ (e: React.FocusEvent<HTMLInputElement>) => void
998
+
999
+ | \- | \- |
1000
+ | onChange |
1001
+
1002
+ Emitted when the checkbox value changes.
1003
+
1004
+ ( e: React.ChangeEvent<HTMLInputElement>, value?: FormControlValue, ) => void
1005
+
1006
+ | \- | \- |
1007
+ | onFocus |
1008
+
1009
+ Emitted when the checkbox gains focus.
1010
+
1011
+ (e: React.FocusEvent<HTMLInputElement>) => void
1012
+
1013
+ | \- | \- |
1014
+ | required |
1015
+
1016
+ If `true`, the checkbox is a required field and will be validated as such.
1017
+
1018
+ boolean
1019
+
1020
+
1021
+
1022
+ | \- | Set boolean |
1023
+ | touch |
1024
+
1025
+ Add the button-like border and padding to checkbox when `touch` is true.
1026
+
1027
+ boolean
1028
+
1029
+
1030
+
1031
+ | \- | FalseTrue |
1032
+ | value |
1033
+
1034
+ Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group. **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
1035
+
1036
+ FormControlValue
1037
+
1038
+
1039
+
1040
+ | \- | Set object |