@iress-oss/ids-mcp-server 5.14.2 → 6.0.0-alpha.0
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.
- package/generated/docs/components-alert-docs.md +579 -7
- package/generated/docs/components-autocomplete-docs.md +694 -15
- package/generated/docs/components-autocomplete-recipes-docs.md +1 -1
- package/generated/docs/components-badge-docs.md +442 -59
- package/generated/docs/components-button-docs.md +1150 -70
- package/generated/docs/components-buttongroup-docs.md +441 -3
- package/generated/docs/components-card-docs.md +487 -37
- package/generated/docs/components-checkbox-docs.md +506 -5
- package/generated/docs/components-checkboxgroup-docs.md +586 -191
- package/generated/docs/components-checkboxgroup-recipes-docs.md +3 -3
- package/generated/docs/components-col-docs.md +451 -36
- package/generated/docs/components-container-docs.md +32 -0
- package/generated/docs/components-divider-docs.md +427 -27
- package/generated/docs/components-expander-docs.md +487 -108
- package/generated/docs/components-field-docs.md +1400 -68
- package/generated/docs/components-filter-docs.md +269 -56
- package/generated/docs/components-hide-docs.md +447 -10
- package/generated/docs/components-icon-docs.md +522 -259
- package/generated/docs/components-image-docs.md +493 -0
- package/generated/docs/components-inline-docs.md +1179 -44
- package/generated/docs/components-input-docs.md +544 -12
- package/generated/docs/components-input-recipes-docs.md +4 -4
- package/generated/docs/components-inputcurrency-docs.md +532 -0
- package/generated/docs/components-inputcurrency-recipes-docs.md +4 -5
- package/generated/docs/components-introduction-docs.md +450 -0
- package/generated/docs/components-label-docs.md +454 -27
- package/generated/docs/components-link-docs.md +586 -0
- package/generated/docs/components-menu-docs.md +531 -89
- package/generated/docs/components-menu-menuitem-docs.md +556 -10
- package/generated/docs/components-modal-docs.md +814 -55
- package/generated/docs/components-panel-docs.md +418 -198
- package/generated/docs/components-placeholder-docs.md +420 -1
- package/generated/docs/components-popover-docs.md +1097 -32
- package/generated/docs/components-popover-recipes-docs.md +39 -73
- package/generated/docs/components-progress-docs.md +464 -0
- package/generated/docs/components-provider-docs.md +160 -0
- package/generated/docs/components-radio-docs.md +460 -4
- package/generated/docs/components-radiogroup-docs.md +586 -116
- package/generated/docs/components-readonly-docs.md +450 -4
- package/generated/docs/components-richselect-docs.md +4660 -1257
- package/generated/docs/components-row-docs.md +2065 -588
- package/generated/docs/components-select-docs.md +489 -5
- package/generated/docs/components-skeleton-docs.md +399 -16
- package/generated/docs/components-skeleton-recipes-docs.md +7 -7
- package/generated/docs/components-skiplink-docs.md +548 -27
- package/generated/docs/components-slideout-docs.md +648 -150
- package/generated/docs/components-slider-docs.md +515 -33
- package/generated/docs/components-spinner-docs.md +393 -2
- package/generated/docs/components-stack-docs.md +732 -74
- package/generated/docs/components-table-ag-grid-docs.md +501 -1723
- package/generated/docs/components-table-docs.md +1049 -27
- package/generated/docs/components-tabset-docs.md +454 -27
- package/generated/docs/components-tabset-tab-docs.md +464 -0
- package/generated/docs/components-tag-docs.md +452 -19
- package/generated/docs/components-text-docs.md +322 -131
- package/generated/docs/components-toaster-docs.md +512 -51
- package/generated/docs/components-toggle-docs.md +476 -20
- package/generated/docs/components-tooltip-docs.md +443 -7
- package/generated/docs/components-validationmessage-docs.md +933 -13
- package/generated/docs/extensions-editor-docs.md +906 -13
- package/generated/docs/extensions-editor-recipes-docs.md +51 -1
- package/generated/docs/foundations-accessibility-docs.md +1 -23
- package/generated/docs/foundations-grid-docs.md +74 -0
- package/generated/docs/foundations-introduction-docs.md +6 -4
- package/generated/docs/foundations-responsive-breakpoints-docs.md +193 -0
- package/generated/docs/foundations-tokens-colour-docs.md +564 -0
- package/generated/docs/foundations-tokens-elevation-docs.md +155 -0
- package/generated/docs/foundations-tokens-introduction-docs.md +190 -0
- package/generated/docs/foundations-tokens-radius-docs.md +71 -0
- package/generated/docs/foundations-tokens-spacing-docs.md +89 -0
- package/generated/docs/foundations-tokens-typography-docs.md +322 -0
- package/generated/docs/foundations-z-index-stacking-docs.md +31 -0
- package/generated/docs/get-started-develop-docs.md +177 -16
- package/generated/docs/guidelines.md +1537 -295
- package/generated/docs/introduction-docs.md +65 -21
- package/generated/docs/news-version-6-docs.md +93 -0
- package/generated/docs/patterns-form-docs.md +3902 -0
- package/generated/docs/patterns-form-recipes-docs.md +1370 -0
- package/generated/docs/patterns-introduction-docs.md +24 -0
- package/generated/docs/patterns-loading-docs.md +2942 -203
- package/generated/docs/resources-introduction-docs.md +38 -0
- package/generated/docs/resources-mcp-server-docs.md +27 -0
- package/generated/docs/styling-props-colour-docs.md +172 -0
- package/generated/docs/styling-props-elevation-docs.md +88 -0
- package/generated/docs/styling-props-radius-docs.md +86 -0
- package/generated/docs/styling-props-reference-docs.md +160 -0
- package/generated/docs/styling-props-screen-readers-docs.md +71 -0
- package/generated/docs/styling-props-sizing-docs.md +627 -0
- package/generated/docs/styling-props-spacing-docs.md +2282 -0
- package/generated/docs/styling-props-typography-docs.md +121 -0
- package/generated/docs/themes-available-themes-docs.md +29 -29
- package/generated/docs/themes-introduction-docs.md +1 -1
- package/package.json +3 -22
- package/generated/docs/components-button-recipes-docs.md +0 -76
- package/generated/docs/components-card-recipes-docs.md +0 -89
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-form-docs.md +0 -2442
- package/generated/docs/components-form-recipes-docs.md +0 -892
- package/generated/docs/components-navbar-docs.md +0 -291
- package/generated/docs/components-navbar-recipes-docs.md +0 -413
- package/generated/docs/components-toaster-toast-docs.md +0 -157
- package/generated/docs/foundations-colours-docs.md +0 -257
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/resources-changelog-docs.md +0 -6
- package/generated/docs/themes-tokens-docs.md +0 -1200
|
@@ -6,6 +6,14 @@ Overview
|
|
|
6
6
|
|
|
7
7
|
Checkbox groups allow users to make more than one choice in a set of related options.
|
|
8
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
|
+
|
|
9
17
|
Lemon drizzle
|
|
10
18
|
|
|
11
19
|
Victoria Sponge
|
|
@@ -27,6 +35,441 @@ Hide code
|
|
|
27
35
|
|
|
28
36
|
Copy
|
|
29
37
|
|
|
38
|
+
[](#props)Props
|
|
39
|
+
---------------
|
|
40
|
+
|
|
41
|
+
| Name | Description | Default | Control |
|
|
42
|
+
| --- | --- | --- | --- |
|
|
43
|
+
| bg |
|
|
44
|
+
**`bg`** sets the background color of an element using the `background-color` css property using the color tokens in the design system.
|
|
45
|
+
|
|
46
|
+
We recommend using the following token values for best background contrast:
|
|
47
|
+
|
|
48
|
+
* `colour.primary.fill` for primary backgrounds that need to stand out
|
|
49
|
+
* `colour.primary.surface` for primary backgrounds that need to be less prominent
|
|
50
|
+
* `colour.neutral.10` for the base background color, normally white in light mode or shade of grey in dark mode
|
|
51
|
+
* `colour.neutral.20` for a slightly darker background color, used in neutral state components
|
|
52
|
+
* `colour.system.danger.fill` for error backgrounds that need to stand out
|
|
53
|
+
* `colour.system.danger.surface` for error backgrounds that need to be less prominent
|
|
54
|
+
* `colour.system.success.fill` for success backgrounds that need to stand out
|
|
55
|
+
* `colour.system.success.surface` for success backgrounds that need to be less prominent
|
|
56
|
+
* `colour.system.warning.fill` for warning backgrounds that need to stand out
|
|
57
|
+
* `colour.system.warning.surface` for warning backgrounds that need to be less prominent
|
|
58
|
+
* `colour.system.info.fill` for info backgrounds that need to stand out
|
|
59
|
+
* `colour.system.info.surface` for info backgrounds that need to be less prominent
|
|
60
|
+
|
|
61
|
+
ResponsiveProp<ColorToken> | undefined
|
|
62
|
+
|
|
63
|
+
| \- | Set object |
|
|
64
|
+
| borderRadius |
|
|
65
|
+
|
|
66
|
+
The **`border-radius`** CSS property rounds the corners of an element's outer border edge using the radius tokens in the design system.
|
|
67
|
+
|
|
68
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
69
|
+
| --- | --- | --- | --- | --- |
|
|
70
|
+
| **4** | **4** | **5** | **12** | **9** |
|
|
71
|
+
| 1 _\-x-_ | | 3 _\-x-_ | | |
|
|
72
|
+
|
|
73
|
+
ResponsiveProp<RadiusToken> | undefined
|
|
74
|
+
|
|
75
|
+
| \- | Set object |
|
|
76
|
+
| children |
|
|
77
|
+
|
|
78
|
+
Content to be displayed inside the group, usually multiple `IressCheckbox`.
|
|
79
|
+
|
|
80
|
+
ReactNode
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
| \- | \- |
|
|
85
|
+
| defaultValue |
|
|
86
|
+
|
|
87
|
+
Value of checkbox group when in uncontrolled mode.
|
|
88
|
+
|
|
89
|
+
T | T\[\] | undefined
|
|
90
|
+
|
|
91
|
+
| \- | Set object |
|
|
92
|
+
| focusable |
|
|
93
|
+
|
|
94
|
+
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.
|
|
95
|
+
|
|
96
|
+
"true""within"undefined
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
| \- | Set object |
|
|
101
|
+
| hiddenCheckbox |
|
|
102
|
+
|
|
103
|
+
Hides the checkbox controls to allow the creation of custom checkboxes.
|
|
104
|
+
|
|
105
|
+
booleanundefined
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
| \- | Set object |
|
|
110
|
+
| hide |
|
|
111
|
+
|
|
112
|
+
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.
|
|
113
|
+
|
|
114
|
+
Hide on all breakpoints: `hide: true` Hide on specific breakpoints: `hide: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
|
|
115
|
+
|
|
116
|
+
Notes:
|
|
117
|
+
|
|
118
|
+
* If you need to hide an element but allow it to be visible to screen readers, use the `srOnly` prop instead.
|
|
119
|
+
* Consider if you can conditionally render the element instead of hiding it.
|
|
120
|
+
|
|
121
|
+
ResponsiveProp<boolean> | undefined
|
|
122
|
+
|
|
123
|
+
| \- | Set object |
|
|
124
|
+
| layerStyle |
|
|
125
|
+
|
|
126
|
+
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.
|
|
127
|
+
|
|
128
|
+
* `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.
|
|
129
|
+
* `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.
|
|
130
|
+
* `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.
|
|
131
|
+
|
|
132
|
+
ResponsiveProp<"elevation.raised" | "elevation.floating" | "elevation.overflow" | "elevation.focus" | "elevation.focusCompact"> | undefined
|
|
133
|
+
|
|
134
|
+
| \- | Set object |
|
|
135
|
+
| layout |
|
|
136
|
+
|
|
137
|
+
Sets which of the block / inline layout options apply.
|
|
138
|
+
|
|
139
|
+
"block""inline""stack"undefined
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
|
144
|
+
|
|
145
|
+
stack
|
|
146
|
+
|
|
147
|
+
| Set object |
|
|
148
|
+
| m |
|
|
149
|
+
|
|
150
|
+
The **`m`** property is short for `margin`, and sets the margin area on all four sides of an element.
|
|
151
|
+
|
|
152
|
+
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.
|
|
153
|
+
|
|
154
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
155
|
+
| --- | --- | --- | --- | --- |
|
|
156
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
157
|
+
|
|
158
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
159
|
+
|
|
160
|
+
| \- | Set object |
|
|
161
|
+
| maxWidth |
|
|
162
|
+
|
|
163
|
+
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`.
|
|
164
|
+
|
|
165
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
166
|
+
| --- | --- | --- | --- | --- |
|
|
167
|
+
| **1** | **1** | **1** | **12** | **7** |
|
|
168
|
+
|
|
169
|
+
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
|
|
170
|
+
|
|
171
|
+
| \- | Set object |
|
|
172
|
+
| mb |
|
|
173
|
+
|
|
174
|
+
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.
|
|
175
|
+
|
|
176
|
+
It uses the spacing tokens in the design system.
|
|
177
|
+
|
|
178
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
179
|
+
| --- | --- | --- | --- | --- |
|
|
180
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
181
|
+
|
|
182
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
183
|
+
|
|
184
|
+
| \- | Set object |
|
|
185
|
+
| ml |
|
|
186
|
+
|
|
187
|
+
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.
|
|
188
|
+
|
|
189
|
+
It uses the spacing tokens in the design system.
|
|
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
|
+
| mr |
|
|
199
|
+
|
|
200
|
+
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.
|
|
201
|
+
|
|
202
|
+
It uses the spacing tokens in the design system.
|
|
203
|
+
|
|
204
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
205
|
+
| --- | --- | --- | --- | --- |
|
|
206
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
207
|
+
|
|
208
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
209
|
+
|
|
210
|
+
| \- | Set object |
|
|
211
|
+
| mt |
|
|
212
|
+
|
|
213
|
+
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.
|
|
214
|
+
|
|
215
|
+
It uses the spacing tokens in the design system.
|
|
216
|
+
|
|
217
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
218
|
+
| --- | --- | --- | --- | --- |
|
|
219
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
220
|
+
|
|
221
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
222
|
+
|
|
223
|
+
| \- | Set object |
|
|
224
|
+
| mx |
|
|
225
|
+
|
|
226
|
+
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.
|
|
227
|
+
|
|
228
|
+
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.
|
|
229
|
+
|
|
230
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
231
|
+
| --- | --- | --- | --- | --- |
|
|
232
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
233
|
+
|
|
234
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
235
|
+
|
|
236
|
+
| \- | Set object |
|
|
237
|
+
| my |
|
|
238
|
+
|
|
239
|
+
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.
|
|
240
|
+
|
|
241
|
+
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.
|
|
242
|
+
|
|
243
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
244
|
+
| --- | --- | --- | --- | --- |
|
|
245
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
246
|
+
|
|
247
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
248
|
+
|
|
249
|
+
| \- | Set object |
|
|
250
|
+
| name |
|
|
251
|
+
|
|
252
|
+
Name to be applied to all checkboxes in the group.
|
|
253
|
+
|
|
254
|
+
stringundefined
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
| \- |
|
|
259
|
+
|
|
260
|
+
"let-them-eat-cake"
|
|
261
|
+
|
|
262
|
+
|
|
|
263
|
+
| noGutter |
|
|
264
|
+
|
|
265
|
+
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.
|
|
266
|
+
|
|
267
|
+
booleanundefined
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
| \- | Set object |
|
|
272
|
+
| onChange |
|
|
273
|
+
|
|
274
|
+
Called with collated new value when a user toggles one of its children checkboxes.
|
|
275
|
+
|
|
276
|
+
((value?: T\[\] | undefined) => void) | undefined
|
|
277
|
+
|
|
278
|
+
| \- | \- |
|
|
279
|
+
| p |
|
|
280
|
+
|
|
281
|
+
The **`p`** property is short for `padding`, and sets the padding area on all four sides of an element at once.
|
|
282
|
+
|
|
283
|
+
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.
|
|
284
|
+
|
|
285
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
286
|
+
| --- | --- | --- | --- | --- |
|
|
287
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
288
|
+
|
|
289
|
+
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
|
|
290
|
+
|
|
291
|
+
| \- | Set object |
|
|
292
|
+
| pb |
|
|
293
|
+
|
|
294
|
+
The **`pb`** property is short for `padding-bottom` and sets the padding area on the bottom side of an element.
|
|
295
|
+
|
|
296
|
+
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.
|
|
297
|
+
|
|
298
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
299
|
+
| --- | --- | --- | --- | --- |
|
|
300
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
301
|
+
|
|
302
|
+
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
|
|
303
|
+
|
|
304
|
+
| \- | Set object |
|
|
305
|
+
| pl |
|
|
306
|
+
|
|
307
|
+
The **`pl`** property is short for `padding-left` and sets the padding area on the left side of an element.
|
|
308
|
+
|
|
309
|
+
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.
|
|
310
|
+
|
|
311
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
312
|
+
| --- | --- | --- | --- | --- |
|
|
313
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
314
|
+
|
|
315
|
+
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
|
|
316
|
+
|
|
317
|
+
| \- | Set object |
|
|
318
|
+
| pr |
|
|
319
|
+
|
|
320
|
+
The **`pr`** property is short for `padding-right` and sets the padding area on the right side of an element.
|
|
321
|
+
|
|
322
|
+
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.
|
|
323
|
+
|
|
324
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
325
|
+
| --- | --- | --- | --- | --- |
|
|
326
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
327
|
+
|
|
328
|
+
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
|
|
329
|
+
|
|
330
|
+
| \- | Set object |
|
|
331
|
+
| pt |
|
|
332
|
+
|
|
333
|
+
The **`pt`** property is short for `padding-top` and sets the padding area on the top side of an element.
|
|
334
|
+
|
|
335
|
+
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.
|
|
336
|
+
|
|
337
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
338
|
+
| --- | --- | --- | --- | --- |
|
|
339
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
340
|
+
|
|
341
|
+
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
|
|
342
|
+
|
|
343
|
+
| \- | Set object |
|
|
344
|
+
| px |
|
|
345
|
+
|
|
346
|
+
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.
|
|
347
|
+
|
|
348
|
+
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.
|
|
349
|
+
|
|
350
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
351
|
+
| --- | --- | --- | --- | --- |
|
|
352
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
353
|
+
|
|
354
|
+
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
|
|
355
|
+
|
|
356
|
+
| \- | Set object |
|
|
357
|
+
| py |
|
|
358
|
+
|
|
359
|
+
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.
|
|
360
|
+
|
|
361
|
+
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.
|
|
362
|
+
|
|
363
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
364
|
+
| --- | --- | --- | --- | --- |
|
|
365
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
366
|
+
|
|
367
|
+
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
|
|
368
|
+
|
|
369
|
+
| \- | Set object |
|
|
370
|
+
| readOnly |
|
|
371
|
+
|
|
372
|
+
Renders the group in a read-only state.
|
|
373
|
+
|
|
374
|
+
booleanundefined
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
| \- | Set object |
|
|
379
|
+
| ref |
|
|
380
|
+
|
|
381
|
+
ForwardedRef<CheckboxGroupRef<T>> | undefined
|
|
382
|
+
|
|
383
|
+
| \- | Set object |
|
|
384
|
+
| rowGap |
|
|
385
|
+
|
|
386
|
+
The **`row-gap`** CSS property sets the size of the gap (gutter) between an element's rows.
|
|
387
|
+
|
|
388
|
+
Note: It only has an effect when used as a direct child of a layout component, such as IressRow, IressStack or IressInline.
|
|
389
|
+
|
|
390
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
391
|
+
| --- | --- | --- | --- | --- |
|
|
392
|
+
| **47** | **52** | **10.1** | **16** | No |
|
|
393
|
+
|
|
394
|
+
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
|
|
395
|
+
|
|
396
|
+
| \- | Set object |
|
|
397
|
+
| srOnly |
|
|
398
|
+
|
|
399
|
+
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.
|
|
400
|
+
|
|
401
|
+
Hide on all breakpoints: `srOnly: true` Hide on specific breakpoints: `srOnly: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
|
|
402
|
+
|
|
403
|
+
ResponsiveProp<boolean> | undefined
|
|
404
|
+
|
|
405
|
+
| \- | Set object |
|
|
406
|
+
| stretch |
|
|
407
|
+
|
|
408
|
+
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.
|
|
409
|
+
|
|
410
|
+
booleanundefined
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
| \- | Set object |
|
|
415
|
+
| textAlign |
|
|
416
|
+
|
|
417
|
+
The **`text-align`** CSS property sets the horizontal alignment of the inline-level content inside a block element or table-cell box.
|
|
418
|
+
|
|
419
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
420
|
+
| --- | --- | --- | --- | --- |
|
|
421
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
422
|
+
|
|
423
|
+
ResponsiveProp<"center" | "left" | "right" | "inherit" | "justify"> | undefined
|
|
424
|
+
|
|
425
|
+
| \- | Set object |
|
|
426
|
+
| textStyle |
|
|
427
|
+
|
|
428
|
+
Select the typography to be used using the **`textStyle`** prop. These are connected to the typography tokens in the design system.'
|
|
429
|
+
|
|
430
|
+
* `typography.body.sm` - Use for small components such as badges and disclaimers, as well as compact variations of tables and lists.
|
|
431
|
+
* `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.
|
|
432
|
+
* `typography.body.lg` - Use for tag lines, subtitles, and other large text content in the product.
|
|
433
|
+
* `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.
|
|
434
|
+
* `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.
|
|
435
|
+
* `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.
|
|
436
|
+
* `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.
|
|
437
|
+
* `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.
|
|
438
|
+
* `typography.code` - Used to display code snippets in the product, such as in the API documentation.
|
|
439
|
+
|
|
440
|
+
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
|
|
441
|
+
|
|
442
|
+
| \- | Set object |
|
|
443
|
+
| touch |
|
|
444
|
+
|
|
445
|
+
Add the button-like border and padding to checkbox when `touch` is true.
|
|
446
|
+
|
|
447
|
+
booleanundefined
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
| \- | Set object |
|
|
452
|
+
| value |
|
|
453
|
+
|
|
454
|
+
Value of checkbox group when in controlled mode.
|
|
455
|
+
|
|
456
|
+
T | T\[\] | undefined
|
|
457
|
+
|
|
458
|
+
| \- | Set object |
|
|
459
|
+
| width |
|
|
460
|
+
|
|
461
|
+
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.
|
|
462
|
+
|
|
463
|
+
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.
|
|
464
|
+
|
|
465
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
466
|
+
| --- | --- | --- | --- | --- |
|
|
467
|
+
| **1** | **1** | **1** | **12** | **4** |
|
|
468
|
+
|
|
469
|
+
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
|
|
470
|
+
|
|
471
|
+
| \- | Set object |
|
|
472
|
+
|
|
30
473
|
[](#examples)Examples
|
|
31
474
|
---------------------
|
|
32
475
|
|
|
@@ -117,10 +560,12 @@ import {
|
|
|
117
560
|
IressStack,
|
|
118
561
|
} from '@iress-oss/ids-components';
|
|
119
562
|
import { useState } from 'react';
|
|
120
|
-
export const CheckboxGroupUsingState \=
|
|
121
|
-
|
|
563
|
+
export const CheckboxGroupUsingState \= <T \= FormControlValue,\>(
|
|
564
|
+
<T\>,
|
|
565
|
+
) => {
|
|
566
|
+
const \[value, setValue\] \= useState<T\[\]\>(\[\]);
|
|
122
567
|
return (
|
|
123
|
-
<IressStack
|
|
568
|
+
<IressStack gap\="sm"\>
|
|
124
569
|
<IressCheckboxGroup
|
|
125
570
|
{...{
|
|
126
571
|
name: 'let-them-eat-cake',
|
|
@@ -147,16 +592,6 @@ The `layout` prop controls how the checkbox group is displayed and can have thre
|
|
|
147
592
|
* **Block:** Same as Stack, but labels take up the full width of the container.
|
|
148
593
|
* **Inline:** Checkboxes are laid out horizontally. Labels are only as wide as their text.
|
|
149
594
|
|
|
150
|
-
### stack
|
|
151
|
-
|
|
152
|
-
Google
|
|
153
|
-
|
|
154
|
-
Newspaper
|
|
155
|
-
|
|
156
|
-
Friend
|
|
157
|
-
|
|
158
|
-
Other
|
|
159
|
-
|
|
160
595
|
### block
|
|
161
596
|
|
|
162
597
|
Google
|
|
@@ -177,7 +612,7 @@ Friend
|
|
|
177
612
|
|
|
178
613
|
Other
|
|
179
614
|
|
|
180
|
-
###
|
|
615
|
+
### stack
|
|
181
616
|
|
|
182
617
|
Google
|
|
183
618
|
|
|
@@ -191,111 +626,79 @@ Hide code
|
|
|
191
626
|
|
|
192
627
|
\[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; }
|
|
193
628
|
|
|
194
|
-
<IressText
|
|
195
|
-
<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
<
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
\>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
\>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
\>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
\>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
</
|
|
221
|
-
<
|
|
222
|
-
<
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
className\="ids-styles--add-border-to-label-v5142"
|
|
268
|
-
value\="other"
|
|
269
|
-
\>
|
|
270
|
-
Other </IressCheckbox\>
|
|
271
|
-
</IressCheckboxGroup\>
|
|
272
|
-
</div\>
|
|
273
|
-
<div\>
|
|
274
|
-
<h3\>
|
|
275
|
-
full </h3\>
|
|
276
|
-
<IressCheckboxGroup layout\="full"\>
|
|
277
|
-
<IressCheckbox
|
|
278
|
-
className\="ids-styles--add-border-to-label-v5142"
|
|
279
|
-
value\="google"
|
|
280
|
-
\>
|
|
281
|
-
Google </IressCheckbox\>
|
|
282
|
-
<IressCheckbox
|
|
283
|
-
className\="ids-styles--add-border-to-label-v5142"
|
|
284
|
-
value\="newspaper"
|
|
285
|
-
\>
|
|
286
|
-
Newspaper </IressCheckbox\>
|
|
287
|
-
<IressCheckbox
|
|
288
|
-
className\="ids-styles--add-border-to-label-v5142"
|
|
289
|
-
value\="friend"
|
|
290
|
-
\>
|
|
291
|
-
Friend </IressCheckbox\>
|
|
292
|
-
<IressCheckbox
|
|
293
|
-
className\="ids-styles--add-border-to-label-v5142"
|
|
294
|
-
value\="other"
|
|
295
|
-
\>
|
|
296
|
-
Other </IressCheckbox\>
|
|
297
|
-
</IressCheckboxGroup\>
|
|
298
|
-
</div\>
|
|
629
|
+
<IressText\>
|
|
630
|
+
<h3\>
|
|
631
|
+
block </h3\>
|
|
632
|
+
<IressCheckboxGroup layout\="block"\>
|
|
633
|
+
<IressCheckbox
|
|
634
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
635
|
+
value\="google"
|
|
636
|
+
\>
|
|
637
|
+
Google </IressCheckbox\>
|
|
638
|
+
<IressCheckbox
|
|
639
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
640
|
+
value\="newspaper"
|
|
641
|
+
\>
|
|
642
|
+
Newspaper </IressCheckbox\>
|
|
643
|
+
<IressCheckbox
|
|
644
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
645
|
+
value\="friend"
|
|
646
|
+
\>
|
|
647
|
+
Friend </IressCheckbox\>
|
|
648
|
+
<IressCheckbox
|
|
649
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
650
|
+
value\="other"
|
|
651
|
+
\>
|
|
652
|
+
Other </IressCheckbox\>
|
|
653
|
+
</IressCheckboxGroup\>
|
|
654
|
+
<h3\>
|
|
655
|
+
inline </h3\>
|
|
656
|
+
<IressCheckboxGroup layout\="inline"\>
|
|
657
|
+
<IressCheckbox
|
|
658
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
659
|
+
value\="google"
|
|
660
|
+
\>
|
|
661
|
+
Google </IressCheckbox\>
|
|
662
|
+
<IressCheckbox
|
|
663
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
664
|
+
value\="newspaper"
|
|
665
|
+
\>
|
|
666
|
+
Newspaper </IressCheckbox\>
|
|
667
|
+
<IressCheckbox
|
|
668
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
669
|
+
value\="friend"
|
|
670
|
+
\>
|
|
671
|
+
Friend </IressCheckbox\>
|
|
672
|
+
<IressCheckbox
|
|
673
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
674
|
+
value\="other"
|
|
675
|
+
\>
|
|
676
|
+
Other </IressCheckbox\>
|
|
677
|
+
</IressCheckboxGroup\>
|
|
678
|
+
<h3\>
|
|
679
|
+
stack </h3\>
|
|
680
|
+
<IressCheckboxGroup layout\="stack"\>
|
|
681
|
+
<IressCheckbox
|
|
682
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
683
|
+
value\="google"
|
|
684
|
+
\>
|
|
685
|
+
Google </IressCheckbox\>
|
|
686
|
+
<IressCheckbox
|
|
687
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
688
|
+
value\="newspaper"
|
|
689
|
+
\>
|
|
690
|
+
Newspaper </IressCheckbox\>
|
|
691
|
+
<IressCheckbox
|
|
692
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
693
|
+
value\="friend"
|
|
694
|
+
\>
|
|
695
|
+
Friend </IressCheckbox\>
|
|
696
|
+
<IressCheckbox
|
|
697
|
+
className\="\_addBorderToLabel\_1d00u\_74"
|
|
698
|
+
value\="other"
|
|
699
|
+
\>
|
|
700
|
+
Other </IressCheckbox\>
|
|
701
|
+
</IressCheckboxGroup\>
|
|
299
702
|
</IressText\>
|
|
300
703
|
|
|
301
704
|
Copy
|
|
@@ -306,12 +709,10 @@ You can use the `hiddenCheckbox` prop to create custom checkboxes. When enabled,
|
|
|
306
709
|
|
|
307
710
|
When `hiddenCheckbox` is enabled, the label will have no padding. Padding can be added by using an `IressPanel`.
|
|
308
711
|
|
|
309
|
-
**I'd like to discuss the following with my financial adviser
|
|
712
|
+
**I'd like to discuss the following with my financial adviser:**
|
|
310
713
|
|
|
311
714
|
Select all that apply
|
|
312
715
|
|
|
313
|
-
**
|
|
314
|
-
|
|
315
716
|
Buying my first home
|
|
316
717
|
|
|
317
718
|
Saving for a holiday
|
|
@@ -336,18 +737,18 @@ Hide code
|
|
|
336
737
|
\>
|
|
337
738
|
<IressCheckbox value\="home"\>
|
|
338
739
|
<IressPanel
|
|
339
|
-
|
|
340
|
-
|
|
740
|
+
bg\="transparent"
|
|
741
|
+
p\="lg"
|
|
341
742
|
textAlign\="center"
|
|
342
743
|
\>
|
|
343
|
-
<IressStack
|
|
744
|
+
<IressStack gap\="md"\>
|
|
344
745
|
<IressIcon
|
|
345
746
|
name\="house"
|
|
346
|
-
|
|
747
|
+
textStyle\="typography.heading.1"
|
|
347
748
|
/>
|
|
348
749
|
<IressText
|
|
349
750
|
noGutter
|
|
350
|
-
|
|
751
|
+
textStyle\="typography.heading.4"
|
|
351
752
|
\>
|
|
352
753
|
Buying my first home </IressText\>
|
|
353
754
|
</IressStack\>
|
|
@@ -355,18 +756,18 @@ Hide code
|
|
|
355
756
|
</IressCheckbox\>
|
|
356
757
|
<IressCheckbox value\="holiday"\>
|
|
357
758
|
<IressPanel
|
|
358
|
-
|
|
359
|
-
|
|
759
|
+
bg\="transparent"
|
|
760
|
+
p\="lg"
|
|
360
761
|
textAlign\="center"
|
|
361
762
|
\>
|
|
362
|
-
<IressStack
|
|
763
|
+
<IressStack gap\="md"\>
|
|
363
764
|
<IressIcon
|
|
364
765
|
name\="mountain"
|
|
365
|
-
|
|
766
|
+
textStyle\="typography.heading.1"
|
|
366
767
|
/>
|
|
367
768
|
<IressText
|
|
368
769
|
noGutter
|
|
369
|
-
|
|
770
|
+
textStyle\="typography.heading.4"
|
|
370
771
|
\>
|
|
371
772
|
Saving for a holiday </IressText\>
|
|
372
773
|
</IressStack\>
|
|
@@ -374,18 +775,18 @@ Hide code
|
|
|
374
775
|
</IressCheckbox\>
|
|
375
776
|
<IressCheckbox value\="debt"\>
|
|
376
777
|
<IressPanel
|
|
377
|
-
|
|
378
|
-
|
|
778
|
+
bg\="transparent"
|
|
779
|
+
p\="lg"
|
|
379
780
|
textAlign\="center"
|
|
380
781
|
\>
|
|
381
|
-
<IressStack
|
|
782
|
+
<IressStack gap\="md"\>
|
|
382
783
|
<IressIcon
|
|
383
784
|
name\="credit-card"
|
|
384
|
-
|
|
785
|
+
textStyle\="typography.heading.1"
|
|
385
786
|
/>
|
|
386
787
|
<IressText
|
|
387
788
|
noGutter
|
|
388
|
-
|
|
789
|
+
textStyle\="typography.heading.4"
|
|
389
790
|
\>
|
|
390
791
|
Reducing my debt </IressText\>
|
|
391
792
|
</IressStack\>
|
|
@@ -402,12 +803,10 @@ The checkbox group's `layout` prop gives you some default options to help contro
|
|
|
402
803
|
|
|
403
804
|
The example below uses CSS grid to give us evenly spaced / sized checkboxes, which will wrap on to new lines as the screen size reduces. The grid wrapper element is a div that wraps around the `<IressCheckbox>` elements, as shown by the dashed border. Use the grab handle in the bottom right-hand corner of the grid wrapper to see how the controls change size to respond to the container's width.
|
|
404
805
|
|
|
405
|
-
**I'd like to discuss the following with my financial adviser
|
|
806
|
+
**I'd like to discuss the following with my financial adviser:**
|
|
406
807
|
|
|
407
808
|
Select all that apply
|
|
408
809
|
|
|
409
|
-
**
|
|
410
|
-
|
|
411
810
|
Retirement
|
|
412
811
|
|
|
413
812
|
Buying my first home
|
|
@@ -439,17 +838,13 @@ Hide code
|
|
|
439
838
|
hiddenCheckbox
|
|
440
839
|
layout\="block"
|
|
441
840
|
name\="financial-review"
|
|
442
|
-
style\={{
|
|
443
|
-
'--iress-inline-spacing-x': 0,
|
|
444
|
-
'--iress-margin-bottom': 0
|
|
445
|
-
}}
|
|
446
841
|
\>
|
|
447
842
|
<div
|
|
448
|
-
className\="
|
|
843
|
+
className\="\_resizable\_1d00u\_78"
|
|
449
844
|
style\={{
|
|
450
845
|
display: 'grid',
|
|
451
846
|
gridAutoRows: '1fr',
|
|
452
|
-
gridGap: '
|
|
847
|
+
gridGap: '16px',
|
|
453
848
|
gridTemplateColumns: 'repeat(auto-fit, minmax(240px, 1fr))',
|
|
454
849
|
padding: '0.5rem',
|
|
455
850
|
width: '100%'
|
|
@@ -457,18 +852,18 @@ Hide code
|
|
|
457
852
|
\>
|
|
458
853
|
<IressCheckbox value\="retirement"\>
|
|
459
854
|
<IressPanel
|
|
460
|
-
|
|
461
|
-
|
|
855
|
+
bg\="transparent"
|
|
856
|
+
p\="lg"
|
|
462
857
|
textAlign\="center"
|
|
463
858
|
\>
|
|
464
|
-
<IressStack
|
|
859
|
+
<IressStack gap\="md"\>
|
|
465
860
|
<IressIcon
|
|
466
861
|
name\="tree-palm"
|
|
467
|
-
|
|
862
|
+
textStyle\="typography.heading.1"
|
|
468
863
|
/>
|
|
469
864
|
<IressText
|
|
470
865
|
noGutter
|
|
471
|
-
|
|
866
|
+
textStyle\="typography.heading.4"
|
|
472
867
|
\>
|
|
473
868
|
Retirement </IressText\>
|
|
474
869
|
</IressStack\>
|
|
@@ -476,18 +871,18 @@ Hide code
|
|
|
476
871
|
</IressCheckbox\>
|
|
477
872
|
<IressCheckbox value\="home"\>
|
|
478
873
|
<IressPanel
|
|
479
|
-
|
|
480
|
-
|
|
874
|
+
bg\="transparent"
|
|
875
|
+
p\="lg"
|
|
481
876
|
textAlign\="center"
|
|
482
877
|
\>
|
|
483
|
-
<IressStack
|
|
878
|
+
<IressStack gap\="md"\>
|
|
484
879
|
<IressIcon
|
|
485
880
|
name\="house"
|
|
486
|
-
|
|
881
|
+
textStyle\="typography.heading.1"
|
|
487
882
|
/>
|
|
488
883
|
<IressText
|
|
489
884
|
noGutter
|
|
490
|
-
|
|
885
|
+
textStyle\="typography.heading.4"
|
|
491
886
|
\>
|
|
492
887
|
Buying my first home </IressText\>
|
|
493
888
|
</IressStack\>
|
|
@@ -495,18 +890,18 @@ Hide code
|
|
|
495
890
|
</IressCheckbox\>
|
|
496
891
|
<IressCheckbox value\="holiday"\>
|
|
497
892
|
<IressPanel
|
|
498
|
-
|
|
499
|
-
|
|
893
|
+
bg\="transparent"
|
|
894
|
+
p\="lg"
|
|
500
895
|
textAlign\="center"
|
|
501
896
|
\>
|
|
502
|
-
<IressStack
|
|
897
|
+
<IressStack gap\="md"\>
|
|
503
898
|
<IressIcon
|
|
504
899
|
name\="mountain"
|
|
505
|
-
|
|
900
|
+
textStyle\="typography.heading.1"
|
|
506
901
|
/>
|
|
507
902
|
<IressText
|
|
508
903
|
noGutter
|
|
509
|
-
|
|
904
|
+
textStyle\="typography.heading.4"
|
|
510
905
|
\>
|
|
511
906
|
Saving for a holiday </IressText\>
|
|
512
907
|
</IressStack\>
|
|
@@ -514,18 +909,18 @@ Hide code
|
|
|
514
909
|
</IressCheckbox\>
|
|
515
910
|
<IressCheckbox value\="education"\>
|
|
516
911
|
<IressPanel
|
|
517
|
-
|
|
518
|
-
|
|
912
|
+
bg\="transparent"
|
|
913
|
+
p\="lg"
|
|
519
914
|
textAlign\="center"
|
|
520
915
|
\>
|
|
521
|
-
<IressStack
|
|
916
|
+
<IressStack gap\="md"\>
|
|
522
917
|
<IressIcon
|
|
523
918
|
name\="graduation-cap"
|
|
524
|
-
|
|
919
|
+
textStyle\="typography.heading.1"
|
|
525
920
|
/>
|
|
526
921
|
<IressText
|
|
527
922
|
noGutter
|
|
528
|
-
|
|
923
|
+
textStyle\="typography.heading.4"
|
|
529
924
|
\>
|
|
530
925
|
Saving for my child's education </IressText\>
|
|
531
926
|
</IressStack\>
|
|
@@ -533,18 +928,18 @@ Hide code
|
|
|
533
928
|
</IressCheckbox\>
|
|
534
929
|
<IressCheckbox value\="emergency"\>
|
|
535
930
|
<IressPanel
|
|
536
|
-
|
|
537
|
-
|
|
931
|
+
bg\="transparent"
|
|
932
|
+
p\="lg"
|
|
538
933
|
textAlign\="center"
|
|
539
934
|
\>
|
|
540
|
-
<IressStack
|
|
935
|
+
<IressStack gap\="md"\>
|
|
541
936
|
<IressIcon
|
|
542
937
|
name\="medkit"
|
|
543
|
-
|
|
938
|
+
textStyle\="typography.heading.1"
|
|
544
939
|
/>
|
|
545
940
|
<IressText
|
|
546
941
|
noGutter
|
|
547
|
-
|
|
942
|
+
textStyle\="typography.heading.4"
|
|
548
943
|
\>
|
|
549
944
|
Saving for emergency </IressText\>
|
|
550
945
|
</IressStack\>
|
|
@@ -552,18 +947,18 @@ Hide code
|
|
|
552
947
|
</IressCheckbox\>
|
|
553
948
|
<IressCheckbox value\="hobby"\>
|
|
554
949
|
<IressPanel
|
|
555
|
-
|
|
556
|
-
|
|
950
|
+
bg\="transparent"
|
|
951
|
+
p\="lg"
|
|
557
952
|
textAlign\="center"
|
|
558
953
|
\>
|
|
559
|
-
<IressStack
|
|
954
|
+
<IressStack gap\="md"\>
|
|
560
955
|
<IressIcon
|
|
561
956
|
name\="bicycle"
|
|
562
|
-
|
|
957
|
+
textStyle\="typography.heading.1"
|
|
563
958
|
/>
|
|
564
959
|
<IressText
|
|
565
960
|
noGutter
|
|
566
|
-
|
|
961
|
+
textStyle\="typography.heading.4"
|
|
567
962
|
\>
|
|
568
963
|
Spending more time on my hobbies </IressText\>
|
|
569
964
|
</IressStack\>
|
|
@@ -571,18 +966,18 @@ Hide code
|
|
|
571
966
|
</IressCheckbox\>
|
|
572
967
|
<IressCheckbox value\="debt"\>
|
|
573
968
|
<IressPanel
|
|
574
|
-
|
|
575
|
-
|
|
969
|
+
bg\="transparent"
|
|
970
|
+
p\="lg"
|
|
576
971
|
textAlign\="center"
|
|
577
972
|
\>
|
|
578
|
-
<IressStack
|
|
973
|
+
<IressStack gap\="md"\>
|
|
579
974
|
<IressIcon
|
|
580
975
|
name\="chart-line-down"
|
|
581
|
-
|
|
976
|
+
textStyle\="typography.heading.1"
|
|
582
977
|
/>
|
|
583
978
|
<IressText
|
|
584
979
|
noGutter
|
|
585
|
-
|
|
980
|
+
textStyle\="typography.heading.4"
|
|
586
981
|
\>
|
|
587
982
|
Reducing my debt </IressText\>
|
|
588
983
|
</IressStack\>
|
|
@@ -590,18 +985,18 @@ Hide code
|
|
|
590
985
|
</IressCheckbox\>
|
|
591
986
|
<IressCheckbox value\="business"\>
|
|
592
987
|
<IressPanel
|
|
593
|
-
|
|
594
|
-
|
|
988
|
+
bg\="transparent"
|
|
989
|
+
p\="lg"
|
|
595
990
|
textAlign\="center"
|
|
596
991
|
\>
|
|
597
|
-
<IressStack
|
|
992
|
+
<IressStack gap\="md"\>
|
|
598
993
|
<IressIcon
|
|
599
994
|
name\="user-tie"
|
|
600
|
-
|
|
995
|
+
textStyle\="typography.heading.1"
|
|
601
996
|
/>
|
|
602
997
|
<IressText
|
|
603
998
|
noGutter
|
|
604
|
-
|
|
999
|
+
textStyle\="typography.heading.4"
|
|
605
1000
|
\>
|
|
606
1001
|
Starting a business </IressText\>
|
|
607
1002
|
</IressStack\>
|
|
@@ -613,11 +1008,11 @@ Hide code
|
|
|
613
1008
|
|
|
614
1009
|
Copy
|
|
615
1010
|
|
|
616
|
-
### [](#
|
|
1011
|
+
### [](#read-only)Read only
|
|
617
1012
|
|
|
618
|
-
The `
|
|
1013
|
+
The `readOnly` prop changes how the checkbox group is rendered. It will only render the children that are checked (alongside a hidden input that contains the `value` if it was set), otherwise it not be rendered.
|
|
619
1014
|
|
|
620
|
-
It is understandable that this may not be the desired behavior for all use cases. If you need a checkbox group that is not editable, but still visible, simply do not set the `
|
|
1015
|
+
It is understandable that this may not be the desired behavior for all use cases. If you need a checkbox group that is not editable, but still visible, simply do not set the `readOnly` prop and set the `value` prop instead.
|
|
621
1016
|
|
|
622
1017
|
Lemon drizzle
|
|
623
1018
|
|
|
@@ -633,7 +1028,7 @@ Hide code
|
|
|
633
1028
|
'victoria-sponge'
|
|
634
1029
|
\]}
|
|
635
1030
|
name\="let-them-eat-cake"
|
|
636
|
-
|
|
1031
|
+
readOnly
|
|
637
1032
|
\>
|
|
638
1033
|
<IressCheckbox value\="lemon-drizzle"\>
|
|
639
1034
|
Lemon drizzle </IressCheckbox\>
|
|
@@ -688,5 +1083,5 @@ On this page
|
|
|
688
1083
|
* [Layout](#layout)
|
|
689
1084
|
* [Hidden checkboxes](#hidden-checkboxes)
|
|
690
1085
|
* [Laying out custom checkboxes](#laying-out-custom-checkboxes)
|
|
691
|
-
* [
|
|
1086
|
+
* [Read only](#read-only)
|
|
692
1087
|
* [Touch](#touch)
|