@iress-oss/ids-mcp-server 6.0.0-alpha.0 → 6.0.0-alpha.1-canary-20251204014525-3f0dce4

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 (108) hide show
  1. package/dist/searchHandlers.test.js +8 -2
  2. package/dist/toolHandler.test.js +9 -9
  3. package/dist/utils.test.js +6 -2
  4. package/package.json +32 -30
  5. package/generated/docs/components-alert-docs.md +0 -702
  6. package/generated/docs/components-autocomplete-docs.md +0 -1433
  7. package/generated/docs/components-autocomplete-recipes-docs.md +0 -104
  8. package/generated/docs/components-badge-docs.md +0 -531
  9. package/generated/docs/components-button-docs.md +0 -1442
  10. package/generated/docs/components-buttongroup-docs.md +0 -748
  11. package/generated/docs/components-card-docs.md +0 -944
  12. package/generated/docs/components-checkbox-docs.md +0 -694
  13. package/generated/docs/components-checkboxgroup-docs.md +0 -1087
  14. package/generated/docs/components-checkboxgroup-recipes-docs.md +0 -119
  15. package/generated/docs/components-col-docs.md +0 -881
  16. package/generated/docs/components-container-docs.md +0 -123
  17. package/generated/docs/components-divider-docs.md +0 -576
  18. package/generated/docs/components-expander-docs.md +0 -594
  19. package/generated/docs/components-field-docs.md +0 -2007
  20. package/generated/docs/components-filter-docs.md +0 -1322
  21. package/generated/docs/components-hide-docs.md +0 -702
  22. package/generated/docs/components-icon-docs.md +0 -816
  23. package/generated/docs/components-image-docs.md +0 -493
  24. package/generated/docs/components-inline-docs.md +0 -2003
  25. package/generated/docs/components-input-docs.md +0 -867
  26. package/generated/docs/components-input-recipes-docs.md +0 -140
  27. package/generated/docs/components-inputcurrency-docs.md +0 -689
  28. package/generated/docs/components-inputcurrency-recipes-docs.md +0 -115
  29. package/generated/docs/components-introduction-docs.md +0 -450
  30. package/generated/docs/components-label-docs.md +0 -562
  31. package/generated/docs/components-link-docs.md +0 -586
  32. package/generated/docs/components-menu-docs.md +0 -1146
  33. package/generated/docs/components-menu-menuitem-docs.md +0 -739
  34. package/generated/docs/components-modal-docs.md +0 -1346
  35. package/generated/docs/components-panel-docs.md +0 -600
  36. package/generated/docs/components-placeholder-docs.md +0 -446
  37. package/generated/docs/components-popover-docs.md +0 -1529
  38. package/generated/docs/components-popover-recipes-docs.md +0 -211
  39. package/generated/docs/components-progress-docs.md +0 -568
  40. package/generated/docs/components-provider-docs.md +0 -160
  41. package/generated/docs/components-radio-docs.md +0 -563
  42. package/generated/docs/components-radiogroup-docs.md +0 -1153
  43. package/generated/docs/components-readonly-docs.md +0 -535
  44. package/generated/docs/components-richselect-docs.md +0 -5836
  45. package/generated/docs/components-row-docs.md +0 -2354
  46. package/generated/docs/components-select-docs.md +0 -940
  47. package/generated/docs/components-skeleton-docs.md +0 -597
  48. package/generated/docs/components-skeleton-recipes-docs.md +0 -76
  49. package/generated/docs/components-skiplink-docs.md +0 -587
  50. package/generated/docs/components-slideout-docs.md +0 -1036
  51. package/generated/docs/components-slider-docs.md +0 -828
  52. package/generated/docs/components-spinner-docs.md +0 -450
  53. package/generated/docs/components-stack-docs.md +0 -923
  54. package/generated/docs/components-table-ag-grid-docs.md +0 -1444
  55. package/generated/docs/components-table-docs.md +0 -2327
  56. package/generated/docs/components-tabset-docs.md +0 -768
  57. package/generated/docs/components-tabset-tab-docs.md +0 -550
  58. package/generated/docs/components-tag-docs.md +0 -548
  59. package/generated/docs/components-text-docs.md +0 -585
  60. package/generated/docs/components-toaster-docs.md +0 -755
  61. package/generated/docs/components-toggle-docs.md +0 -614
  62. package/generated/docs/components-tooltip-docs.md +0 -747
  63. package/generated/docs/components-validationmessage-docs.md +0 -1161
  64. package/generated/docs/contact-us-docs.md +0 -27
  65. package/generated/docs/extensions-editor-docs.md +0 -1181
  66. package/generated/docs/extensions-editor-recipes-docs.md +0 -89
  67. package/generated/docs/foundations-accessibility-docs.md +0 -40
  68. package/generated/docs/foundations-consistency-docs.md +0 -52
  69. package/generated/docs/foundations-content-docs.md +0 -23
  70. package/generated/docs/foundations-grid-docs.md +0 -74
  71. package/generated/docs/foundations-introduction-docs.md +0 -19
  72. package/generated/docs/foundations-principles-docs.md +0 -70
  73. package/generated/docs/foundations-responsive-breakpoints-docs.md +0 -193
  74. package/generated/docs/foundations-tokens-colour-docs.md +0 -564
  75. package/generated/docs/foundations-tokens-elevation-docs.md +0 -155
  76. package/generated/docs/foundations-tokens-introduction-docs.md +0 -190
  77. package/generated/docs/foundations-tokens-radius-docs.md +0 -71
  78. package/generated/docs/foundations-tokens-spacing-docs.md +0 -89
  79. package/generated/docs/foundations-tokens-typography-docs.md +0 -322
  80. package/generated/docs/foundations-user-experience-docs.md +0 -63
  81. package/generated/docs/foundations-visual-design-docs.md +0 -46
  82. package/generated/docs/foundations-z-index-stacking-docs.md +0 -31
  83. package/generated/docs/frequently-asked-questions-docs.md +0 -53
  84. package/generated/docs/get-started-develop-docs.md +0 -209
  85. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  86. package/generated/docs/guidelines.md +0 -2054
  87. package/generated/docs/introduction-docs.md +0 -87
  88. package/generated/docs/news-version-6-docs.md +0 -93
  89. package/generated/docs/patterns-form-docs.md +0 -3902
  90. package/generated/docs/patterns-form-recipes-docs.md +0 -1370
  91. package/generated/docs/patterns-introduction-docs.md +0 -24
  92. package/generated/docs/patterns-loading-docs.md +0 -4043
  93. package/generated/docs/resources-code-katas-docs.md +0 -29
  94. package/generated/docs/resources-introduction-docs.md +0 -38
  95. package/generated/docs/resources-mcp-server-docs.md +0 -27
  96. package/generated/docs/resources-migration-guides-from-v4-to-v5-docs.md +0 -437
  97. package/generated/docs/styling-props-colour-docs.md +0 -172
  98. package/generated/docs/styling-props-elevation-docs.md +0 -88
  99. package/generated/docs/styling-props-radius-docs.md +0 -86
  100. package/generated/docs/styling-props-reference-docs.md +0 -160
  101. package/generated/docs/styling-props-screen-readers-docs.md +0 -71
  102. package/generated/docs/styling-props-sizing-docs.md +0 -627
  103. package/generated/docs/styling-props-spacing-docs.md +0 -2282
  104. package/generated/docs/styling-props-typography-docs.md +0 -121
  105. package/generated/docs/themes-available-themes-docs.md +0 -66
  106. package/generated/docs/themes-introduction-docs.md +0 -121
  107. package/generated/docs/versions-docs.md +0 -17
  108. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1,694 +0,0 @@
1
- [](#checkbox)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
- * * *
10
-
11
- Updated
12
-
13
- **Recently updated**
14
-
15
- This component has been recently updated with new props. The props have been marked as beta. Please tell us if there are any issues.
16
-
17
- A checkbox
18
-
19
- Hide code
20
-
21
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
22
-
23
- <IressCheckbox\>
24
- A checkbox
25
- </IressCheckbox\>
26
-
27
- Copy
28
-
29
- [](#props)Props
30
- ---------------
31
-
32
- IressCheckboxIressCheckboxMark
33
-
34
- Tabs
35
-
36
- | Name | Description | Default | Control |
37
- | --- | --- | --- | --- |
38
- | bg |
39
- **`bg`** sets the background color of an element using the `background-color` css property using the color tokens in the design system.
40
-
41
- We recommend using the following token values for best background contrast:
42
-
43
- * `colour.primary.fill` for primary backgrounds that need to stand out
44
- * `colour.primary.surface` for primary backgrounds that need to be less prominent
45
- * `colour.neutral.10` for the base background color, normally white in light mode or shade of grey in dark mode
46
- * `colour.neutral.20` for a slightly darker background color, used in neutral state components
47
- * `colour.system.danger.fill` for error backgrounds that need to stand out
48
- * `colour.system.danger.surface` for error backgrounds that need to be less prominent
49
- * `colour.system.success.fill` for success backgrounds that need to stand out
50
- * `colour.system.success.surface` for success backgrounds that need to be less prominent
51
- * `colour.system.warning.fill` for warning backgrounds that need to stand out
52
- * `colour.system.warning.surface` for warning backgrounds that need to be less prominent
53
- * `colour.system.info.fill` for info backgrounds that need to stand out
54
- * `colour.system.info.surface` for info backgrounds that need to be less prominent
55
-
56
- ResponsiveProp<ColorToken> | undefined
57
-
58
- | \- | Set object |
59
- | borderRadius |
60
-
61
- The **`border-radius`** CSS property rounds the corners of an element's outer border edge using the radius tokens in the design system.
62
-
63
- | Chrome | Firefox | Safari | Edge | IE |
64
- | --- | --- | --- | --- | --- |
65
- | **4** | **4** | **5** | **12** | **9** |
66
- | 1 _\-x-_ | | 3 _\-x-_ | | |
67
-
68
- ResponsiveProp<RadiusToken> | undefined
69
-
70
- | \- | Set object |
71
- | checked |
72
-
73
- If true, the checkbox is selected. Please use this when are rendering the checkbox in controlled mode.
74
-
75
- booleanundefined
76
-
77
-
78
-
79
- | \- | Set object |
80
- | children |
81
-
82
- The checkbox content
83
-
84
- ReactNode
85
-
86
-
87
-
88
- | \- |
89
-
90
- "A checkbox"
91
-
92
- |
93
- | color |
94
-
95
- The **`color`** CSS property sets the foreground color value of an element's text and text decorations using the colour tokens from the design system. It also sets the `currentcolor` value. `currentcolor` may be used as an indirect value on _other_ properties and is the default for other color properties, such as `border-color`.
96
-
97
- We recommend using the following token values for best color contrast:
98
-
99
- * `colour.primary.onFill` used on top of `colour.primary.fill` for primary text that needs to stand out
100
- * `colour.primary.text` used on top of `colour.primary.surface` or `colour.neutral.10` for primary text that needs to be less prominent
101
- * `colour.neutral.70` used on top of `colour.neutral.10` or `colour.neutral.20` for muted text
102
- * `colour.neutral.80` used on top of `colour.neutral.10` or `colour.neutral.20` for standard text
103
- * `colour.system.danger.onFill` used on top of `colour.system.danger.fill` for error text that needs to stand out
104
- * `colour.system.danger.text` used on top of `colour.system.danger.surface` for error text that needs to be less prominent
105
- * `colour.system.success.onFill` used on top of `colour.system.success.fill` for success text that needs to stand out
106
- * `colour.system.success.text` used on top of `colour.system.success.surface` for success text that needs to be less prominent
107
- * `colour.system.warning.onFill` used on top of `colour.system.warning.fill` for warning text that needs to stand out
108
- * `colour.system.warning.text` used on top of `colour.system.warning.surface` for warning text that needs to be less prominent
109
- * `colour.system.info.onFill` used on top of `colour.system.info.fill` for informative text that needs to stand out
110
- * `colour.system.info.text` used on top of `colour.system.info.surface` for informative text that needs to be less prominent
111
-
112
- ResponsiveProp<ColorToken> | undefined
113
-
114
- | \- | Set object |
115
- | defaultChecked |
116
-
117
- If true, the checkbox will be initially rendered as selected. Please use this when are rendering the checkbox in uncontrolled mode.
118
-
119
- booleanundefined
120
-
121
-
122
-
123
- | \- | Set object |
124
- | focusable |
125
-
126
- The `focusable` prop is used to apply the focus elevation when focused. It can be set to `true` to apply focus styles on focus, or `'within'` to apply focus styles when the element or any of its children are focused.
127
-
128
- "true""within"undefined
129
-
130
-
131
-
132
- | \- | Set object |
133
- | hiddenControl |
134
-
135
- Sets whether the control is hidden. If it is within a checkbox group, it will be overridden with the checkbox group's hiddenCheckbox setting.
136
-
137
- booleanundefined
138
-
139
-
140
-
141
- | \- | Set object |
142
- | hiddenLabel |
143
-
144
- Visually hides the label (if set), label will still be read out by screenreaders.
145
-
146
- booleanundefined
147
-
148
-
149
-
150
- | \- | Set object |
151
- | hide |
152
-
153
- Set **`hide`** to hide an element completely using `display: none`. It can also be set to an object of breakpoints to hide the element at specific breakpoints.
154
-
155
- Hide on all breakpoints: `hide: true` Hide on specific breakpoints: `hide: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
156
-
157
- Notes:
158
-
159
- * If you need to hide an element but allow it to be visible to screen readers, use the `srOnly` prop instead.
160
- * Consider if you can conditionally render the element instead of hiding it.
161
-
162
- ResponsiveProp<boolean> | undefined
163
-
164
- | \- | Set object |
165
- | indeterminate |
166
-
167
- If true, the checkbox will visually appear as indeterminate.
168
-
169
- booleanundefined
170
-
171
-
172
-
173
- | \- | Set object |
174
- | layerStyle |
175
-
176
- Elevate a layer by using a **`layerStyle`**. These are connected to the elevation tokens in the design system. They can be combined to create hierarchy and structure.
177
-
178
- * `elevation.raised`: Raised elevations sit slightly higher than other content. They are reserved for cards that can be moved, such as Jira issue cards and Trello cards. In special circumstances, they can be used for cards as a way to provide additional heirarchy or emphasis.
179
- * `elevation.floating`: Floating is the highest elevation available. It is reserved for a UI that sits over another UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons.
180
- * `elevation.overflow`: Overflow is a shadow indicating content has scrolled outside a view. It can be used for vertical or horizontal scroll. An example of overflow shadows is the horizontal scroll in tables on a Confluence page.
181
-
182
- ResponsiveProp<"elevation.raised" | "elevation.floating" | "elevation.overflow" | "elevation.focus" | "elevation.focusCompact"> | undefined
183
-
184
- | \- | Set object |
185
- | m |
186
-
187
- The **`m`** property is short for `margin`, and sets the margin area on all four sides of an element.
188
-
189
- It uses the spacing tokens in the design system. You can also use the negative values to overlap elements or ignore padding based on the design requirements.
190
-
191
- | Chrome | Firefox | Safari | Edge | IE |
192
- | --- | --- | --- | --- | --- |
193
- | **1** | **1** | **1** | **12** | **3** |
194
-
195
- ResponsiveProp<SpacingToken | "auto"> | undefined
196
-
197
- | \- | Set object |
198
- | maxWidth |
199
-
200
- The **`max-width`** CSS property sets the maximum width of an element. It prevents the used value of the `width` property from becoming larger than the value specified by `max-width`.
201
-
202
- | Chrome | Firefox | Safari | Edge | IE |
203
- | --- | --- | --- | --- | --- |
204
- | **1** | **1** | **1** | **12** | **7** |
205
-
206
- ResponsiveProp<"auto" | SizeToken | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | ... 8 more ... | "11/12"> | undefined
207
-
208
- | \- | Set object |
209
- | mb |
210
-
211
- The **`mb`** property is short for `margin-bottom` and sets the margin area on the bottom side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
212
-
213
- It uses the spacing tokens in the design system.
214
-
215
- | Chrome | Firefox | Safari | Edge | IE |
216
- | --- | --- | --- | --- | --- |
217
- | **1** | **1** | **1** | **12** | **3** |
218
-
219
- ResponsiveProp<SpacingToken | "auto"> | undefined
220
-
221
- | \- | Set object |
222
- | ml |
223
-
224
- The **`ml`** property is short for `margin-left` and sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
225
-
226
- It uses the spacing tokens in the design system.
227
-
228
- | Chrome | Firefox | Safari | Edge | IE |
229
- | --- | --- | --- | --- | --- |
230
- | **1** | **1** | **1** | **12** | **3** |
231
-
232
- ResponsiveProp<SpacingToken | "auto"> | undefined
233
-
234
- | \- | Set object |
235
- | mr |
236
-
237
- The **`mr`** property is short for `margin-right` and sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
238
-
239
- It uses the spacing tokens in the design system.
240
-
241
- | Chrome | Firefox | Safari | Edge | IE |
242
- | --- | --- | --- | --- | --- |
243
- | **1** | **1** | **1** | **12** | **3** |
244
-
245
- ResponsiveProp<SpacingToken | "auto"> | undefined
246
-
247
- | \- | Set object |
248
- | mt |
249
-
250
- The **`mt`** property is short for `margin-top` and sets the margin area on the top side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
251
-
252
- It uses the spacing tokens in the design system.
253
-
254
- | Chrome | Firefox | Safari | Edge | IE |
255
- | --- | --- | --- | --- | --- |
256
- | **1** | **1** | **1** | **12** | **3** |
257
-
258
- ResponsiveProp<SpacingToken | "auto"> | undefined
259
-
260
- | \- | Set object |
261
- | mx |
262
-
263
- The **`mx`** property is short for `margin-inline`. It is a shorthand property that defines both the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
264
-
265
- It uses the spacing tokens in the design system. You can also use the negative values to overlap elements or ignore padding based on the design requirements.
266
-
267
- | Chrome | Firefox | Safari | Edge | IE |
268
- | --- | --- | --- | --- | --- |
269
- | **1** | **1** | **1** | **12** | **3** |
270
-
271
- ResponsiveProp<SpacingToken | "auto"> | undefined
272
-
273
- | \- | Set object |
274
- | my |
275
-
276
- The **`my`** property is short for `margin-block`. It defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
277
-
278
- It uses the spacing tokens in the design system. You can also use the negative values to overlap elements or ignore padding based on the design requirements.
279
-
280
- | Chrome | Firefox | Safari | Edge | IE |
281
- | --- | --- | --- | --- | --- |
282
- | **1** | **1** | **1** | **12** | **3** |
283
-
284
- ResponsiveProp<SpacingToken | "auto"> | undefined
285
-
286
- | \- | Set object |
287
- | name |
288
-
289
- The name of the control, which is submitted with the form data.
290
-
291
- stringundefined
292
-
293
-
294
-
295
- | \- | Set object |
296
- | noGutter |
297
-
298
- The **`noGutter`** property is used to remove the bottom margin from the last child of a component. This is useful when you want to avoid extra spacing at the end of a layout.
299
-
300
- booleanundefined
301
-
302
-
303
-
304
- | \- | Set object |
305
- | onBlur |
306
-
307
- Emitted when the checkbox loses focus.
308
-
309
- ((e: FocusEvent<HTMLInputElement, Element>) => void) | undefined
310
-
311
- | \- | \- |
312
- | onChange |
313
-
314
- Emitted when the checkbox value changes.
315
-
316
- ((e: ChangeEvent<HTMLInputElement>, checked?: boolean | undefined, value?: T | undefined) => void) | undefined
317
-
318
- | \- | \- |
319
- | onFocus |
320
-
321
- Emitted when the checkbox gains focus.
322
-
323
- ((e: FocusEvent<HTMLInputElement, Element>) => void) | undefined
324
-
325
- | \- | \- |
326
- | p |
327
-
328
- The **`p`** property is short for `padding`, and sets the padding area on all four sides of an element at once.
329
-
330
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
331
-
332
- | Chrome | Firefox | Safari | Edge | IE |
333
- | --- | --- | --- | --- | --- |
334
- | **1** | **1** | **1** | **12** | **3** |
335
-
336
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
337
-
338
- | \- | Set object |
339
- | pb |
340
-
341
- The **`pb`** property is short for `padding-bottom` and sets the padding area on the bottom side of an element.
342
-
343
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
344
-
345
- | Chrome | Firefox | Safari | Edge | IE |
346
- | --- | --- | --- | --- | --- |
347
- | **1** | **1** | **1** | **12** | **3** |
348
-
349
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
350
-
351
- | \- | Set object |
352
- | pl |
353
-
354
- The **`pl`** property is short for `padding-left` and sets the padding area on the left side of an element.
355
-
356
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
357
-
358
- | Chrome | Firefox | Safari | Edge | IE |
359
- | --- | --- | --- | --- | --- |
360
- | **1** | **1** | **1** | **12** | **3** |
361
-
362
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
363
-
364
- | \- | Set object |
365
- | pr |
366
-
367
- The **`pr`** property is short for `padding-right` and sets the padding area on the right side of an element.
368
-
369
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
370
-
371
- | Chrome | Firefox | Safari | Edge | IE |
372
- | --- | --- | --- | --- | --- |
373
- | **1** | **1** | **1** | **12** | **3** |
374
-
375
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
376
-
377
- | \- | Set object |
378
- | pt |
379
-
380
- The **`pt`** property is short for `padding-top` and sets the padding area on the top side of an element.
381
-
382
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
383
-
384
- | Chrome | Firefox | Safari | Edge | IE |
385
- | --- | --- | --- | --- | --- |
386
- | **1** | **1** | **1** | **12** | **3** |
387
-
388
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
389
-
390
- | \- | Set object |
391
- | px |
392
-
393
- The **`px`** property is short for `padding-inline`. It is a shorthand property that defines both the logical inline start and end paddings of an element, which maps to physical paddings depending on the element's writing mode, directionality, and text orientation.
394
-
395
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
396
-
397
- | Chrome | Firefox | Safari | Edge | IE |
398
- | --- | --- | --- | --- | --- |
399
- | **1** | **1** | **1** | **12** | **3** |
400
-
401
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
402
-
403
- | \- | Set object |
404
- | py |
405
-
406
- The **`py`** property is short for `padding-block`. It defines the logical block start and end paddings of an element, which maps to physical paddings depending on the element's writing mode, directionality, and text orientation.
407
-
408
- It uses the spacing tokens in the design system. Padding cannot use negative values, if you need to overlap elements or ignore padding, use the margin property instead.
409
-
410
- | Chrome | Firefox | Safari | Edge | IE |
411
- | --- | --- | --- | --- | --- |
412
- | **1** | **1** | **1** | **12** | **3** |
413
-
414
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
415
-
416
- | \- | Set object |
417
- | ref |
418
-
419
- ForwardedRef<ReactHookFormCompatibleRef<HTMLInputElement>> | undefined
420
-
421
- | \- | Set object |
422
- | required |
423
-
424
- If `true`, the checkbox is a required field and will be validated as such.
425
-
426
- booleanundefined
427
-
428
-
429
-
430
- | \- | Set object |
431
- | rowGap |
432
-
433
- The **`row-gap`** CSS property sets the size of the gap (gutter) between an element's rows.
434
-
435
- Note: It only has an effect when used as a direct child of a layout component, such as IressRow, IressStack or IressInline.
436
-
437
- | Chrome | Firefox | Safari | Edge | IE |
438
- | --- | --- | --- | --- | --- |
439
- | **47** | **52** | **10.1** | **16** | No |
440
-
441
- ResponsiveProp<"xs" | "sm" | "md" | "lg" | "xl" | "none" | "spacing.000" | "spacing.050" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | ... 9 more ... | "slider.tick"> | undefined
442
-
443
- | \- | Set object |
444
- | srOnly |
445
-
446
- Set **`srOnly`** to hide an element visually but still make it accessible to screen readers. It can also be set to an object of breakpoints to hide the element at specific breakpoints.
447
-
448
- Hide on all breakpoints: `srOnly: true` Hide on specific breakpoints: `srOnly: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
449
-
450
- ResponsiveProp<boolean> | undefined
451
-
452
- | \- | Set object |
453
- | stretch |
454
-
455
- The **`stretch`** property is used to stretch an element to fill the available space in its parent container. It sets the `height` property to `100%` and `alignSelf` to `stretch`, allowing the element to expand and contract based on the size of its parent.
456
-
457
- booleanundefined
458
-
459
-
460
-
461
- | \- | Set object |
462
- | textAlign |
463
-
464
- The **`text-align`** CSS property sets the horizontal alignment of the inline-level content inside a block element or table-cell box.
465
-
466
- | Chrome | Firefox | Safari | Edge | IE |
467
- | --- | --- | --- | --- | --- |
468
- | **1** | **1** | **1** | **12** | **3** |
469
-
470
- ResponsiveProp<"center" | "left" | "right" | "inherit" | "justify"> | undefined
471
-
472
- | \- | Set object |
473
- | textStyle |
474
-
475
- Select the typography to be used using the **`textStyle`** prop. These are connected to the typography tokens in the design system.'
476
-
477
- * `typography.body.sm` - Use for small components such as badges and disclaimers, as well as compact variations of tables and lists.
478
- * `typography.body.md` - The most commonly used body text size, used for most text content in the product and the default state of all components in the design system.
479
- * `typography.body.lg` - Use for tag lines, subtitles, and other large text content in the product.
480
- * `typography.heading.1` - Use for the main page title to establish a clear hierarchy. There is typically only one H1 per screen, emphasising the primary purpose or context of the page.
481
- * `typography.heading.2` - Use for primary section headings within a page to organise content and guide the user through key areas. Also suitable for large components—such as modals—where space allows and where it pairs well with body.md or body.lg.
482
- * `typography.heading.3` - Use for sub-sections under H2s to further structure content and maintain a clear visual hierarchy. Ideal for breaking down complex sections into manageable parts.
483
- * `typography.heading.4` - Use for supporting headings within content blocks or small components where space is limited—such as table headers, cards, or side panels. Provides structure without overwhelming the layout.
484
- * `typography.heading.5` - Use for minor labels or titles in compact UI elements, such as cards, sidebars, or inline labels. Best used to emphasise supplementary information without drawing too much attention. Works well with body.sm and is ideal for subtle content like fine print. Use sparingly to preserve typographic hierarchy.
485
- * `typography.code` - Used to display code snippets in the product, such as in the API documentation.
486
-
487
- ResponsiveProp<"typography.heading.1" | "typography.heading.2" | "typography.heading.3" | "typography.heading.4" | "typography.heading.5" | "typography.body.sm" | "typography.body.sm.regular" | ... 10 more ... | "typography.code"> | undefined
488
-
489
- | \- | Set object |
490
- | touch |
491
-
492
- Add the button-like border and padding to checkbox when `touch` is true.
493
-
494
- booleanundefined
495
-
496
-
497
-
498
- | \- | Set object |
499
- | value |
500
-
501
- 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.
502
-
503
- Tundefined
504
-
505
-
506
-
507
- | \- | Set object |
508
- | width |
509
-
510
- The **`width`** CSS property sets an element's width. By default, it sets the width of the content area, but if `box-sizing` is set to `border-box`, it sets the width of the border area.
511
-
512
- This prop only allows widths available throughout the component library. To use a custom width, you need to use the `style` prop, or add a custom class to the element and use CSS.
513
-
514
- | Chrome | Firefox | Safari | Edge | IE |
515
- | --- | --- | --- | --- | --- |
516
- | **1** | **1** | **1** | **12** | **4** |
517
-
518
- ResponsiveProp<"auto" | SizeToken | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | ... 8 more ... | "11/12"> | undefined
519
-
520
- | \- | Set object |
521
-
522
- [](#usage)Usage
523
- ---------------
524
-
525
- ### [](#checked)Checked
526
-
527
- For single checkboxes in controlled mode the `checked` prop sets the checked state.
528
-
529
- 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.
530
-
531
- A checkbox which is checked and in controlled mode
532
-
533
- Hide code
534
-
535
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
536
-
537
- <IressCheckbox checked\>
538
- A checkbox which is checked and in controlled mode
539
- </IressCheckbox\>
540
-
541
- Copy
542
-
543
- ### [](#default-checked)Default Checked
544
-
545
- For single checkboxes in uncontrolled mode the `defaultChecked` prop sets the default checked state.
546
-
547
- A checkbox which is initially checked
548
-
549
- Hide code
550
-
551
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
552
-
553
- <IressCheckbox defaultChecked\>
554
- A checkbox which is initially checked
555
- </IressCheckbox\>
556
-
557
- Copy
558
-
559
- ### [](#indeterminate)Indeterminate
560
-
561
- 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.
562
-
563
- A checkbox which is initially in an indeterminate state
564
-
565
- Hide code
566
-
567
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
568
-
569
- <IressCheckbox indeterminate\>
570
- A checkbox which is initially in an indeterminate state
571
- </IressCheckbox\>
572
-
573
- Copy
574
-
575
- ### [](#hidden-label)Hidden Label
576
-
577
- 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.
578
-
579
- 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.
580
-
581
- It is also important to not hide the table headers.
582
-
583
- List of investments
584
- | Select | Name | Date | Cost |
585
- | --- | --- | --- | --- |
586
- |
587
- Toggle row
588
-
589
- | Artemis Fund Managers Limited | 2019-09-23 | 23898.12 |
590
- |
591
-
592
- Toggle row
593
-
594
- | CASH.CASH | 2020-06-28 | 49751.43 |
595
-
596
- Hide code
597
-
598
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
599
-
600
- <IressTable
601
- caption\="List of investments"
602
- columns\={\[
603
- {
604
- format: (value: boolean) \=> <IressCheckbox defaultChecked\={value} hiddenLabel\>Toggle row</IressCheckbox\>,
605
- key: 'select',
606
- label: 'Select',
607
- sort: true
608
- },
609
- {
610
- key: 'name',
611
- label: 'Name'
612
- },
613
- {
614
- key: 'date',
615
- label: 'Date'
616
- },
617
- {
618
- key: 'cost',
619
- label: 'Cost'
620
- }
621
- \]}
622
- rows\={\[
623
- {
624
- cost: 23898.12,
625
- date: '2019-09-23',
626
- name: 'Artemis Fund Managers Limited',
627
- select: false
628
- },
629
- {
630
- cost: 49751.43,
631
- date: '2020-06-28',
632
- name: 'CASH.CASH',
633
- select: true
634
- }
635
- \]}
636
- />
637
-
638
- Copy
639
-
640
- ### [](#read-only)Read only
641
-
642
- 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.
643
-
644
- 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.
645
-
646
- I agree to the terms and conditions
647
-
648
- Hide code
649
-
650
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
651
-
652
- <IressStack\>
653
- <IressCheckbox
654
- defaultChecked
655
- readOnly
656
- value\="readOnly"
657
- \>
658
- I agree to the terms and conditions </IressCheckbox\>
659
- <IressCheckbox
660
- readOnly
661
- value\="readOnly"
662
- \>
663
- I agree to the terms and conditions </IressCheckbox\>
664
- </IressStack\>
665
-
666
- Copy
667
-
668
- ### [](#touch)Touch
669
-
670
- The `touch` prop adds the button-like border and padding to checkbox.
671
-
672
- Checkbox with touch styles
673
-
674
- Hide code
675
-
676
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
677
-
678
- <IressCheckbox touch\>
679
- Checkbox with touch styles
680
- </IressCheckbox\>
681
-
682
- Copy
683
-
684
- On this page
685
-
686
- * [Overview](#overview)
687
- * [Props](#props)
688
- * [Usage](#usage)
689
- * [Checked](#checked)
690
- * [Default Checked](#default-checked)
691
- * [Indeterminate](#indeterminate)
692
- * [Hidden Label](#hidden-label)
693
- * [Read only](#read-only)
694
- * [Touch](#touch)