@iress-oss/ids-mcp-server 5.15.0 → 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 +268 -55
- 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 +57 -2
- 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 +497 -127
- 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 +463 -53
- 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/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 +2940 -201
- 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 -2410
- package/generated/docs/components-form-recipes-docs.md +0 -886
- 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
|
@@ -35,6 +35,644 @@ Hide code
|
|
|
35
35
|
|
|
36
36
|
Copy
|
|
37
37
|
|
|
38
|
+
[](#props)Props
|
|
39
|
+
---------------
|
|
40
|
+
|
|
41
|
+
| Name | Description | Default | Control |
|
|
42
|
+
| --- | --- | --- | --- |
|
|
43
|
+
| alignRight |
|
|
44
|
+
Set input content align to right, useful for numeric inputs.
|
|
45
|
+
|
|
46
|
+
booleanundefined
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
|
51
|
+
|
|
52
|
+
false
|
|
53
|
+
|
|
54
|
+
| Set object |
|
|
55
|
+
| alwaysShowOnFocus |
|
|
56
|
+
|
|
57
|
+
Always shown on focus, even if the user has not interacted with the input.
|
|
58
|
+
|
|
59
|
+
booleanundefined
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
| \- | Set object |
|
|
64
|
+
| append |
|
|
65
|
+
|
|
66
|
+
Append content.
|
|
67
|
+
|
|
68
|
+
ReactNode
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
|
73
|
+
|
|
74
|
+
<IressIcon />
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
| Set object |
|
|
79
|
+
| autoSelect |
|
|
80
|
+
|
|
81
|
+
If true, the selected option becomes the value of the input when the autocomplete loses focus.
|
|
82
|
+
|
|
83
|
+
booleanundefined
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
|
88
|
+
|
|
89
|
+
true
|
|
90
|
+
|
|
91
|
+
| Set object |
|
|
92
|
+
| bg |
|
|
93
|
+
|
|
94
|
+
**`bg`** sets the background color of an element using the `background-color` css property using the color tokens in the design system.
|
|
95
|
+
|
|
96
|
+
We recommend using the following token values for best background contrast:
|
|
97
|
+
|
|
98
|
+
* `colour.primary.fill` for primary backgrounds that need to stand out
|
|
99
|
+
* `colour.primary.surface` for primary backgrounds that need to be less prominent
|
|
100
|
+
* `colour.neutral.10` for the base background color, normally white in light mode or shade of grey in dark mode
|
|
101
|
+
* `colour.neutral.20` for a slightly darker background color, used in neutral state components
|
|
102
|
+
* `colour.system.danger.fill` for error backgrounds that need to stand out
|
|
103
|
+
* `colour.system.danger.surface` for error backgrounds that need to be less prominent
|
|
104
|
+
* `colour.system.success.fill` for success backgrounds that need to stand out
|
|
105
|
+
* `colour.system.success.surface` for success backgrounds that need to be less prominent
|
|
106
|
+
* `colour.system.warning.fill` for warning backgrounds that need to stand out
|
|
107
|
+
* `colour.system.warning.surface` for warning backgrounds that need to be less prominent
|
|
108
|
+
* `colour.system.info.fill` for info backgrounds that need to stand out
|
|
109
|
+
* `colour.system.info.surface` for info backgrounds that need to be less prominent
|
|
110
|
+
|
|
111
|
+
ResponsiveProp<ColorToken> | undefined
|
|
112
|
+
|
|
113
|
+
| \- | Set object |
|
|
114
|
+
| borderRadius |
|
|
115
|
+
|
|
116
|
+
The **`border-radius`** CSS property rounds the corners of an element's outer border edge using the radius tokens in the design system.
|
|
117
|
+
|
|
118
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
119
|
+
| --- | --- | --- | --- | --- |
|
|
120
|
+
| **4** | **4** | **5** | **12** | **9** |
|
|
121
|
+
| 1 _\-x-_ | | 3 _\-x-_ | | |
|
|
122
|
+
|
|
123
|
+
ResponsiveProp<RadiusToken> | undefined
|
|
124
|
+
|
|
125
|
+
| \- | Set object |
|
|
126
|
+
| clearable |
|
|
127
|
+
|
|
128
|
+
If `true`, then user can clear the value of the input.
|
|
129
|
+
|
|
130
|
+
booleanundefined
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
|
135
|
+
|
|
136
|
+
true
|
|
137
|
+
|
|
138
|
+
| Set object |
|
|
139
|
+
| color |
|
|
140
|
+
|
|
141
|
+
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`.
|
|
142
|
+
|
|
143
|
+
We recommend using the following token values for best color contrast:
|
|
144
|
+
|
|
145
|
+
* `colour.primary.onFill` used on top of `colour.primary.fill` for primary text that needs to stand out
|
|
146
|
+
* `colour.primary.text` used on top of `colour.primary.surface` or `colour.neutral.10` for primary text that needs to be less prominent
|
|
147
|
+
* `colour.neutral.70` used on top of `colour.neutral.10` or `colour.neutral.20` for muted text
|
|
148
|
+
* `colour.neutral.80` used on top of `colour.neutral.10` or `colour.neutral.20` for standard text
|
|
149
|
+
* `colour.system.danger.onFill` used on top of `colour.system.danger.fill` for error text that needs to stand out
|
|
150
|
+
* `colour.system.danger.text` used on top of `colour.system.danger.surface` for error text that needs to be less prominent
|
|
151
|
+
* `colour.system.success.onFill` used on top of `colour.system.success.fill` for success text that needs to stand out
|
|
152
|
+
* `colour.system.success.text` used on top of `colour.system.success.surface` for success text that needs to be less prominent
|
|
153
|
+
* `colour.system.warning.onFill` used on top of `colour.system.warning.fill` for warning text that needs to stand out
|
|
154
|
+
* `colour.system.warning.text` used on top of `colour.system.warning.surface` for warning text that needs to be less prominent
|
|
155
|
+
* `colour.system.info.onFill` used on top of `colour.system.info.fill` for informative text that needs to stand out
|
|
156
|
+
* `colour.system.info.text` used on top of `colour.system.info.surface` for informative text that needs to be less prominent
|
|
157
|
+
|
|
158
|
+
ResponsiveProp<ColorToken> | undefined
|
|
159
|
+
|
|
160
|
+
| \- | Set object |
|
|
161
|
+
| debounceThreshold |
|
|
162
|
+
|
|
163
|
+
Time in milliseconds to wait for before performing result search. Only applies to searchable options (function).
|
|
164
|
+
|
|
165
|
+
numberundefined
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
|
170
|
+
|
|
171
|
+
500
|
|
172
|
+
|
|
173
|
+
| Set object |
|
|
174
|
+
| defaultValue |
|
|
175
|
+
|
|
176
|
+
The value of the input. Can be a string or a number. Use for uncontrolled inputs.
|
|
177
|
+
|
|
178
|
+
stringundefined
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
| \- | Set object |
|
|
183
|
+
| errorText |
|
|
184
|
+
|
|
185
|
+
Text to be displayed when the options function errors out. It is not used when the options are provided as an array.
|
|
186
|
+
|
|
187
|
+
ReactNode
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
|
192
|
+
|
|
193
|
+
<IressAlert />
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
| Set object |
|
|
198
|
+
| focusable |
|
|
199
|
+
|
|
200
|
+
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.
|
|
201
|
+
|
|
202
|
+
"true""within"undefined
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
| \- | Set object |
|
|
207
|
+
| formatter |
|
|
208
|
+
|
|
209
|
+
Bring your own formatter that will be used to format the value when the input is not focused, allowing you to display the value in a different format. e.g. User type in value="dsf 987kkk123" => result after formatter: $987,123 (string)
|
|
210
|
+
|
|
211
|
+
((value?: string | undefined) => string | number) | undefined
|
|
212
|
+
|
|
213
|
+
| \- | \- |
|
|
214
|
+
| hide |
|
|
215
|
+
|
|
216
|
+
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.
|
|
217
|
+
|
|
218
|
+
Hide on all breakpoints: `hide: true` Hide on specific breakpoints: `hide: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
|
|
219
|
+
|
|
220
|
+
Notes:
|
|
221
|
+
|
|
222
|
+
* If you need to hide an element but allow it to be visible to screen readers, use the `srOnly` prop instead.
|
|
223
|
+
* Consider if you can conditionally render the element instead of hiding it.
|
|
224
|
+
|
|
225
|
+
ResponsiveProp<boolean> | undefined
|
|
226
|
+
|
|
227
|
+
| \- | Set object |
|
|
228
|
+
| initialOptions |
|
|
229
|
+
|
|
230
|
+
Initial options data set, shown when the input is empty.
|
|
231
|
+
|
|
232
|
+
LabelValueMeta\[\] | undefined
|
|
233
|
+
|
|
234
|
+
| \- | Set object |
|
|
235
|
+
| inline |
|
|
236
|
+
|
|
237
|
+
Make prepend/append element closer to the input content.
|
|
238
|
+
|
|
239
|
+
booleanundefined
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
| \- | Set object |
|
|
244
|
+
| layerStyle |
|
|
245
|
+
|
|
246
|
+
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.
|
|
247
|
+
|
|
248
|
+
* `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.
|
|
249
|
+
* `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.
|
|
250
|
+
* `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.
|
|
251
|
+
|
|
252
|
+
ResponsiveProp<"elevation.raised" | "elevation.floating" | "elevation.overflow" | "elevation.focus" | "elevation.focusCompact"> | undefined
|
|
253
|
+
|
|
254
|
+
| \- | Set object |
|
|
255
|
+
| limitDesktop |
|
|
256
|
+
|
|
257
|
+
Maximum number of results displayed on larger screen sizes (>= 768).
|
|
258
|
+
|
|
259
|
+
numberundefined
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
|
264
|
+
|
|
265
|
+
12
|
|
266
|
+
|
|
267
|
+
| Set object |
|
|
268
|
+
| limitMobile |
|
|
269
|
+
|
|
270
|
+
Maximum number of results displayed on mobile screen sizes (< 768).
|
|
271
|
+
|
|
272
|
+
numberundefined
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
|
277
|
+
|
|
278
|
+
6
|
|
279
|
+
|
|
280
|
+
| Set object |
|
|
281
|
+
| loading |
|
|
282
|
+
|
|
283
|
+
The loading states of the input field. If provided a string, will use that text as the loading message.
|
|
284
|
+
|
|
285
|
+
stringbooleanundefined
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
| \- | Set object |
|
|
290
|
+
| m |
|
|
291
|
+
|
|
292
|
+
The **`m`** property is short for `margin`, and sets the margin area on all four sides of an element.
|
|
293
|
+
|
|
294
|
+
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.
|
|
295
|
+
|
|
296
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
297
|
+
| --- | --- | --- | --- | --- |
|
|
298
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
299
|
+
|
|
300
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
301
|
+
|
|
302
|
+
| \- | Set object |
|
|
303
|
+
| maxWidth |
|
|
304
|
+
|
|
305
|
+
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`.
|
|
306
|
+
|
|
307
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
308
|
+
| --- | --- | --- | --- | --- |
|
|
309
|
+
| **1** | **1** | **1** | **12** | **7** |
|
|
310
|
+
|
|
311
|
+
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
|
|
312
|
+
|
|
313
|
+
| \- | Set object |
|
|
314
|
+
| mb |
|
|
315
|
+
|
|
316
|
+
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.
|
|
317
|
+
|
|
318
|
+
It uses the spacing tokens in the design system.
|
|
319
|
+
|
|
320
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
321
|
+
| --- | --- | --- | --- | --- |
|
|
322
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
323
|
+
|
|
324
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
325
|
+
|
|
326
|
+
| \- | Set object |
|
|
327
|
+
| minSearchLength |
|
|
328
|
+
|
|
329
|
+
Minimum number of characters required before triggering async search. Only applies to searchable options (function). Below this threshold, no search will be triggered and no loading state will be shown.
|
|
330
|
+
|
|
331
|
+
numberundefined
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
|
336
|
+
|
|
337
|
+
1
|
|
338
|
+
|
|
339
|
+
| Set object |
|
|
340
|
+
| ml |
|
|
341
|
+
|
|
342
|
+
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.
|
|
343
|
+
|
|
344
|
+
It uses the spacing tokens in the design system.
|
|
345
|
+
|
|
346
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
347
|
+
| --- | --- | --- | --- | --- |
|
|
348
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
349
|
+
|
|
350
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
351
|
+
|
|
352
|
+
| \- | Set object |
|
|
353
|
+
| mr |
|
|
354
|
+
|
|
355
|
+
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.
|
|
356
|
+
|
|
357
|
+
It uses the spacing tokens in the design system.
|
|
358
|
+
|
|
359
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
360
|
+
| --- | --- | --- | --- | --- |
|
|
361
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
362
|
+
|
|
363
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
364
|
+
|
|
365
|
+
| \- | Set object |
|
|
366
|
+
| mt |
|
|
367
|
+
|
|
368
|
+
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.
|
|
369
|
+
|
|
370
|
+
It uses the spacing tokens in the design system.
|
|
371
|
+
|
|
372
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
373
|
+
| --- | --- | --- | --- | --- |
|
|
374
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
375
|
+
|
|
376
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
377
|
+
|
|
378
|
+
| \- | Set object |
|
|
379
|
+
| mx |
|
|
380
|
+
|
|
381
|
+
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.
|
|
382
|
+
|
|
383
|
+
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.
|
|
384
|
+
|
|
385
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
386
|
+
| --- | --- | --- | --- | --- |
|
|
387
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
388
|
+
|
|
389
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
390
|
+
|
|
391
|
+
| \- | Set object |
|
|
392
|
+
| my |
|
|
393
|
+
|
|
394
|
+
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.
|
|
395
|
+
|
|
396
|
+
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.
|
|
397
|
+
|
|
398
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
399
|
+
| --- | --- | --- | --- | --- |
|
|
400
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
401
|
+
|
|
402
|
+
ResponsiveProp<SpacingToken | "auto"> | undefined
|
|
403
|
+
|
|
404
|
+
| \- | Set object |
|
|
405
|
+
| noGutter |
|
|
406
|
+
|
|
407
|
+
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.
|
|
408
|
+
|
|
409
|
+
booleanundefined
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
| \- | Set object |
|
|
414
|
+
| noResultsText |
|
|
415
|
+
|
|
416
|
+
Text to be displayed when no results are found.
|
|
417
|
+
|
|
418
|
+
ReactNode
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
| \- | Set object |
|
|
423
|
+
| onChange |
|
|
424
|
+
|
|
425
|
+
Emitted when the user changes the input. The second and third arguments are only available when the options were selected from the `options` prop.
|
|
426
|
+
|
|
427
|
+
((e?: SyntheticEvent<HTMLInputElement, Event> | undefined, value?: string | undefined, option?: LabelValueMeta | undefined) => void) | undefined
|
|
428
|
+
|
|
429
|
+
| \- | \- |
|
|
430
|
+
| onClear |
|
|
431
|
+
|
|
432
|
+
Emitted when the input is manually cleared.
|
|
433
|
+
|
|
434
|
+
((e: ChangeEvent<HTMLInputElement>) => void) | undefined
|
|
435
|
+
|
|
436
|
+
| \- | \- |
|
|
437
|
+
| options |
|
|
438
|
+
|
|
439
|
+
Options data set, shown when the input is not empty.
|
|
440
|
+
|
|
441
|
+
LabelValueMeta\[\] | ((query: string) => Promise<LabelValueMeta\[\]>) | undefined
|
|
442
|
+
|
|
443
|
+
| \- |
|
|
444
|
+
|
|
445
|
+
RAW
|
|
446
|
+
|
|
447
|
+
options : \[
|
|
448
|
+
|
|
449
|
+
0 : {...} 1 key
|
|
450
|
+
|
|
451
|
+
1 : {...} 1 key
|
|
452
|
+
|
|
453
|
+
2 : {...} 1 key
|
|
454
|
+
|
|
455
|
+
3 : {...} 1 key
|
|
456
|
+
|
|
457
|
+
4 : {...} 1 key
|
|
458
|
+
|
|
459
|
+
\]
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
|
466
|
+
| p |
|
|
467
|
+
|
|
468
|
+
The **`p`** property is short for `padding`, and sets the padding area on all four sides of an element at once.
|
|
469
|
+
|
|
470
|
+
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.
|
|
471
|
+
|
|
472
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
473
|
+
| --- | --- | --- | --- | --- |
|
|
474
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
475
|
+
|
|
476
|
+
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
|
|
477
|
+
|
|
478
|
+
| \- | Set object |
|
|
479
|
+
| pb |
|
|
480
|
+
|
|
481
|
+
The **`pb`** property is short for `padding-bottom` and sets the padding area on the bottom side of an element.
|
|
482
|
+
|
|
483
|
+
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.
|
|
484
|
+
|
|
485
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
486
|
+
| --- | --- | --- | --- | --- |
|
|
487
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
488
|
+
|
|
489
|
+
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
|
|
490
|
+
|
|
491
|
+
| \- | Set object |
|
|
492
|
+
| pl |
|
|
493
|
+
|
|
494
|
+
The **`pl`** property is short for `padding-left` and sets the padding area on the left side of an element.
|
|
495
|
+
|
|
496
|
+
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.
|
|
497
|
+
|
|
498
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
499
|
+
| --- | --- | --- | --- | --- |
|
|
500
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
501
|
+
|
|
502
|
+
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
|
|
503
|
+
|
|
504
|
+
| \- | Set object |
|
|
505
|
+
| popoverProps |
|
|
506
|
+
|
|
507
|
+
Customise the IressInputPopover props for your needs.
|
|
508
|
+
|
|
509
|
+
AutocompletePopoverPropsundefined
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
| { } |
|
|
514
|
+
|
|
515
|
+
RAW
|
|
516
|
+
|
|
517
|
+
popoverProps : {
|
|
518
|
+
|
|
519
|
+
container : {...} 0 keys
|
|
520
|
+
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
|
528
|
+
| pr |
|
|
529
|
+
|
|
530
|
+
The **`pr`** property is short for `padding-right` and sets the padding area on the right side of an element.
|
|
531
|
+
|
|
532
|
+
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.
|
|
533
|
+
|
|
534
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
535
|
+
| --- | --- | --- | --- | --- |
|
|
536
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
537
|
+
|
|
538
|
+
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
|
|
539
|
+
|
|
540
|
+
| \- | Set object |
|
|
541
|
+
| prepend |
|
|
542
|
+
|
|
543
|
+
Content to prepended to the input field, usually an icon.
|
|
544
|
+
|
|
545
|
+
ReactNode
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
| \- | Set object |
|
|
550
|
+
| pt |
|
|
551
|
+
|
|
552
|
+
The **`pt`** property is short for `padding-top` and sets the padding area on the top side of an element.
|
|
553
|
+
|
|
554
|
+
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.
|
|
555
|
+
|
|
556
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
557
|
+
| --- | --- | --- | --- | --- |
|
|
558
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
559
|
+
|
|
560
|
+
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
|
|
561
|
+
|
|
562
|
+
| \- | Set object |
|
|
563
|
+
| px |
|
|
564
|
+
|
|
565
|
+
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.
|
|
566
|
+
|
|
567
|
+
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.
|
|
568
|
+
|
|
569
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
570
|
+
| --- | --- | --- | --- | --- |
|
|
571
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
572
|
+
|
|
573
|
+
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
|
|
574
|
+
|
|
575
|
+
| \- | Set object |
|
|
576
|
+
| py |
|
|
577
|
+
|
|
578
|
+
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.
|
|
579
|
+
|
|
580
|
+
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.
|
|
581
|
+
|
|
582
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
583
|
+
| --- | --- | --- | --- | --- |
|
|
584
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
585
|
+
|
|
586
|
+
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
|
|
587
|
+
|
|
588
|
+
| \- | Set object |
|
|
589
|
+
| rowGap |
|
|
590
|
+
|
|
591
|
+
The **`row-gap`** CSS property sets the size of the gap (gutter) between an element's rows.
|
|
592
|
+
|
|
593
|
+
Note: It only has an effect when used as a direct child of a layout component, such as IressRow, IressStack or IressInline.
|
|
594
|
+
|
|
595
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
596
|
+
| --- | --- | --- | --- | --- |
|
|
597
|
+
| **47** | **52** | **10.1** | **16** | No |
|
|
598
|
+
|
|
599
|
+
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
|
|
600
|
+
|
|
601
|
+
| \- | Set object |
|
|
602
|
+
| rows |
|
|
603
|
+
|
|
604
|
+
Number of rows in the `textarea` (when set the component renders a textarea element)
|
|
605
|
+
|
|
606
|
+
undefined
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
| \- | Set object |
|
|
611
|
+
| srOnly |
|
|
612
|
+
|
|
613
|
+
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.
|
|
614
|
+
|
|
615
|
+
Hide on all breakpoints: `srOnly: true` Hide on specific breakpoints: `srOnly: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
|
|
616
|
+
|
|
617
|
+
ResponsiveProp<boolean> | undefined
|
|
618
|
+
|
|
619
|
+
| \- | Set object |
|
|
620
|
+
| stretch |
|
|
621
|
+
|
|
622
|
+
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.
|
|
623
|
+
|
|
624
|
+
booleanundefined
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
| \- | Set object |
|
|
629
|
+
| textAlign |
|
|
630
|
+
|
|
631
|
+
The **`text-align`** CSS property sets the horizontal alignment of the inline-level content inside a block element or table-cell box.
|
|
632
|
+
|
|
633
|
+
| Chrome | Firefox | Safari | Edge | IE |
|
|
634
|
+
| --- | --- | --- | --- | --- |
|
|
635
|
+
| **1** | **1** | **1** | **12** | **3** |
|
|
636
|
+
|
|
637
|
+
ResponsiveProp<"center" | "left" | "right" | "inherit" | "justify"> | undefined
|
|
638
|
+
|
|
639
|
+
| \- | Set object |
|
|
640
|
+
| textStyle |
|
|
641
|
+
|
|
642
|
+
Select the typography to be used using the **`textStyle`** prop. These are connected to the typography tokens in the design system.'
|
|
643
|
+
|
|
644
|
+
* `typography.body.sm` - Use for small components such as badges and disclaimers, as well as compact variations of tables and lists.
|
|
645
|
+
* `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.
|
|
646
|
+
* `typography.body.lg` - Use for tag lines, subtitles, and other large text content in the product.
|
|
647
|
+
* `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.
|
|
648
|
+
* `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.
|
|
649
|
+
* `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.
|
|
650
|
+
* `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.
|
|
651
|
+
* `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.
|
|
652
|
+
* `typography.code` - Used to display code snippets in the product, such as in the API documentation.
|
|
653
|
+
|
|
654
|
+
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
|
|
655
|
+
|
|
656
|
+
| \- | Set object |
|
|
657
|
+
| value |
|
|
658
|
+
|
|
659
|
+
The value of the input. Can be a string or a number. Use for controlled inputs.
|
|
660
|
+
|
|
661
|
+
stringundefined
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
| \- | Set object |
|
|
666
|
+
| width |
|
|
667
|
+
|
|
668
|
+
The width of the input.
|
|
669
|
+
|
|
670
|
+
"2""4""6""8""10""12""16""25perc"Show 4 more...
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
| \- | Set object |
|
|
675
|
+
|
|
38
676
|
[](#usage)Usage
|
|
39
677
|
---------------
|
|
40
678
|
|
|
@@ -46,8 +684,6 @@ There is no validation done between the suggestions and the input value. They ar
|
|
|
46
684
|
|
|
47
685
|
The `defaultValue` prop can be used to set the initial value of the input. The value will be managed by the component.
|
|
48
686
|
|
|
49
|
-
×Clear
|
|
50
|
-
|
|
51
687
|
Hide code
|
|
52
688
|
|
|
53
689
|
\[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; }
|
|
@@ -82,8 +718,6 @@ Copy
|
|
|
82
718
|
|
|
83
719
|
The `value` prop can be used to completely control the state of the component. Use the `onChange` and `onClear` props to sync your state with the component.
|
|
84
720
|
|
|
85
|
-
×Clear
|
|
86
|
-
|
|
87
721
|
Hide code
|
|
88
722
|
|
|
89
723
|
\[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; }
|
|
@@ -156,7 +790,7 @@ Hide code
|
|
|
156
790
|
}
|
|
157
791
|
\]}
|
|
158
792
|
popoverProps\={{
|
|
159
|
-
container:
|
|
793
|
+
container: {}
|
|
160
794
|
}}
|
|
161
795
|
/>
|
|
162
796
|
|
|
@@ -184,6 +818,51 @@ export const AutocompleteUsingAsync \= () \=> (
|
|
|
184
818
|
popoverProps: {
|
|
185
819
|
container: document.body,
|
|
186
820
|
},
|
|
821
|
+
placeholder: 'Search star wars characters, or type "error" to see the error text',
|
|
822
|
+
}}
|
|
823
|
+
options\={async (query: string) \=> {
|
|
824
|
+
if (query \=== 'error') {
|
|
825
|
+
throw new Error('This is an error');
|
|
826
|
+
}
|
|
827
|
+
const data \= await fetch(
|
|
828
|
+
\`https://swapi.py4e.com/api/people/?search=${query}\`,
|
|
829
|
+
).then((response) \=> response.json() as Promise<StarWarsCharacterApi\>);
|
|
830
|
+
return data.results.map((character: StarWarsCharacter) \=> ({
|
|
831
|
+
label: character.name,
|
|
832
|
+
value: character.name,
|
|
833
|
+
meta: character.gender,
|
|
834
|
+
}));
|
|
835
|
+
}}
|
|
836
|
+
/>
|
|
837
|
+
);
|
|
838
|
+
|
|
839
|
+
Copy
|
|
840
|
+
|
|
841
|
+
#### [](#minimum-search-length-for-async-options)Minimum search length for async options
|
|
842
|
+
|
|
843
|
+
When using asynchronous options, you can set a minimum number of characters required before triggering the search using the `minSearchLength` prop. This prevents unnecessary API calls and loading states for very short queries.
|
|
844
|
+
|
|
845
|
+
By default, async searches are triggered after 1 character. Setting a higher value (e.g., 3) means no search request will be made and no loading spinner will appear until the user types at least that many characters.
|
|
846
|
+
|
|
847
|
+
Hide code
|
|
848
|
+
|
|
849
|
+
\[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; }
|
|
850
|
+
|
|
851
|
+
import { IressAutocomplete, IressAutocompleteProps } from '@iress-oss/ids-components';
|
|
852
|
+
interface StarWarsCharacter {
|
|
853
|
+
name: string;
|
|
854
|
+
gender: string;
|
|
855
|
+
}
|
|
856
|
+
interface StarWarsCharacterApi {
|
|
857
|
+
results: StarWarsCharacter\[\];
|
|
858
|
+
}
|
|
859
|
+
export const AutocompleteUsingAsync \= () \=> (
|
|
860
|
+
<IressAutocomplete
|
|
861
|
+
{...{
|
|
862
|
+
popoverProps: {
|
|
863
|
+
container: document.body,
|
|
864
|
+
},
|
|
865
|
+
minSearchLength: 3,
|
|
187
866
|
}}
|
|
188
867
|
options\={async (query: string) \=> {
|
|
189
868
|
if (query \=== 'error') {
|
|
@@ -314,14 +993,14 @@ Copy
|
|
|
314
993
|
|
|
315
994
|
Autocomplete extends `IressInput`, hence it has the same properties as `IressInput`.
|
|
316
995
|
|
|
317
|
-
It does have some defaults to help with user experience. `append` automatically has a search icon, and `clearable`
|
|
996
|
+
It does have some defaults to help with user experience. `append` automatically has a search icon, and `clearable` is set to true by default.
|
|
318
997
|
|
|
319
998
|
Hide code
|
|
320
999
|
|
|
321
1000
|
\[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; }
|
|
322
1001
|
|
|
323
1002
|
<IressAutocomplete
|
|
324
|
-
append\={<IressPopover activator\={<IressButton mode\="tertiary"\><IressIcon name\="cog" /></IressButton\>} align\="bottom-end" container\={document.body}\><IressPanel
|
|
1003
|
+
append\={<IressPopover activator\={<IressButton mode\="tertiary"\><IressIcon name\="cog" /></IressButton\>} align\="bottom-end" container\={document.body}\><IressPanel\>Some settings in here</IressPanel\></IressPopover\>}
|
|
325
1004
|
options\={\[
|
|
326
1005
|
{
|
|
327
1006
|
label: 'Option 1'
|
|
@@ -357,7 +1036,7 @@ Hide code
|
|
|
357
1036
|
\[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; }
|
|
358
1037
|
|
|
359
1038
|
<IressAutocomplete
|
|
360
|
-
noResultsText\={<IressPanel
|
|
1039
|
+
noResultsText\={<IressPanel\>No results found</IressPanel\>}
|
|
361
1040
|
options\={\[
|
|
362
1041
|
{
|
|
363
1042
|
label: 'Option 1'
|
|
@@ -450,7 +1129,7 @@ Hide code
|
|
|
450
1129
|
\]}
|
|
451
1130
|
placeholder\="Instant search!"
|
|
452
1131
|
popoverProps\={{
|
|
453
|
-
container:
|
|
1132
|
+
container: {}
|
|
454
1133
|
}}
|
|
455
1134
|
/>
|
|
456
1135
|
|
|
@@ -498,8 +1177,8 @@ Hide code
|
|
|
498
1177
|
|
|
499
1178
|
\[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; }
|
|
500
1179
|
|
|
501
|
-
<IressStack
|
|
502
|
-
<IressPanel
|
|
1180
|
+
<IressStack gap\="md"\>
|
|
1181
|
+
<IressPanel\>
|
|
503
1182
|
<CurrentBreakpoint />
|
|
504
1183
|
</IressPanel\>
|
|
505
1184
|
<IressAutocomplete
|
|
@@ -560,9 +1239,9 @@ Hide code
|
|
|
560
1239
|
|
|
561
1240
|
Copy
|
|
562
1241
|
|
|
563
|
-
### [](#
|
|
1242
|
+
### [](#read-only)Read only
|
|
564
1243
|
|
|
565
|
-
The `
|
|
1244
|
+
The `readOnly` prop can be set to `true` to prevent the user from changing the value of the autocomplete. This will change the input to a custom read-only style and the user will not be able to interact with the input.
|
|
566
1245
|
|
|
567
1246
|
If you need more control over the read-only state (for example, rendering a stylised version of the value), you can use the [`IressReadonly` component](?path=/docs/components-readonly--docs).
|
|
568
1247
|
|
|
@@ -592,7 +1271,7 @@ Hide code
|
|
|
592
1271
|
}
|
|
593
1272
|
\]}
|
|
594
1273
|
popoverProps\={{
|
|
595
|
-
container:
|
|
1274
|
+
container: document.body
|
|
596
1275
|
}}
|
|
597
1276
|
readOnly
|
|
598
1277
|
/>
|
|
@@ -747,7 +1426,7 @@ On this page
|
|
|
747
1426
|
* [Popover props](#popover-props)
|
|
748
1427
|
* [Debounce threshold](#debounce-threshold)
|
|
749
1428
|
* [Result limits](#result-limits)
|
|
750
|
-
* [
|
|
1429
|
+
* [Read only](#read-only)
|
|
751
1430
|
* [Testing](#testing)
|
|
752
1431
|
* [Partial query matching](#partial-query-matching)
|
|
753
1432
|
* [Query for minimal characters](#query-for-minimal-characters)
|