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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/searchHandlers.test.js +8 -2
  2. package/dist/toolHandler.test.js +9 -9
  3. package/dist/utils.test.js +6 -2
  4. package/package.json +32 -30
  5. package/generated/docs/components-alert-docs.md +0 -702
  6. package/generated/docs/components-autocomplete-docs.md +0 -1433
  7. package/generated/docs/components-autocomplete-recipes-docs.md +0 -104
  8. package/generated/docs/components-badge-docs.md +0 -531
  9. package/generated/docs/components-button-docs.md +0 -1442
  10. package/generated/docs/components-buttongroup-docs.md +0 -748
  11. package/generated/docs/components-card-docs.md +0 -944
  12. package/generated/docs/components-checkbox-docs.md +0 -694
  13. package/generated/docs/components-checkboxgroup-docs.md +0 -1087
  14. package/generated/docs/components-checkboxgroup-recipes-docs.md +0 -119
  15. package/generated/docs/components-col-docs.md +0 -881
  16. package/generated/docs/components-container-docs.md +0 -123
  17. package/generated/docs/components-divider-docs.md +0 -576
  18. package/generated/docs/components-expander-docs.md +0 -594
  19. package/generated/docs/components-field-docs.md +0 -2007
  20. package/generated/docs/components-filter-docs.md +0 -1322
  21. package/generated/docs/components-hide-docs.md +0 -702
  22. package/generated/docs/components-icon-docs.md +0 -816
  23. package/generated/docs/components-image-docs.md +0 -493
  24. package/generated/docs/components-inline-docs.md +0 -2003
  25. package/generated/docs/components-input-docs.md +0 -867
  26. package/generated/docs/components-input-recipes-docs.md +0 -140
  27. package/generated/docs/components-inputcurrency-docs.md +0 -689
  28. package/generated/docs/components-inputcurrency-recipes-docs.md +0 -115
  29. package/generated/docs/components-introduction-docs.md +0 -450
  30. package/generated/docs/components-label-docs.md +0 -562
  31. package/generated/docs/components-link-docs.md +0 -586
  32. package/generated/docs/components-menu-docs.md +0 -1146
  33. package/generated/docs/components-menu-menuitem-docs.md +0 -739
  34. package/generated/docs/components-modal-docs.md +0 -1346
  35. package/generated/docs/components-panel-docs.md +0 -600
  36. package/generated/docs/components-placeholder-docs.md +0 -446
  37. package/generated/docs/components-popover-docs.md +0 -1529
  38. package/generated/docs/components-popover-recipes-docs.md +0 -211
  39. package/generated/docs/components-progress-docs.md +0 -568
  40. package/generated/docs/components-provider-docs.md +0 -160
  41. package/generated/docs/components-radio-docs.md +0 -563
  42. package/generated/docs/components-radiogroup-docs.md +0 -1153
  43. package/generated/docs/components-readonly-docs.md +0 -535
  44. package/generated/docs/components-richselect-docs.md +0 -5836
  45. package/generated/docs/components-row-docs.md +0 -2354
  46. package/generated/docs/components-select-docs.md +0 -940
  47. package/generated/docs/components-skeleton-docs.md +0 -597
  48. package/generated/docs/components-skeleton-recipes-docs.md +0 -76
  49. package/generated/docs/components-skiplink-docs.md +0 -587
  50. package/generated/docs/components-slideout-docs.md +0 -1036
  51. package/generated/docs/components-slider-docs.md +0 -828
  52. package/generated/docs/components-spinner-docs.md +0 -450
  53. package/generated/docs/components-stack-docs.md +0 -923
  54. package/generated/docs/components-table-ag-grid-docs.md +0 -1444
  55. package/generated/docs/components-table-docs.md +0 -2327
  56. package/generated/docs/components-tabset-docs.md +0 -768
  57. package/generated/docs/components-tabset-tab-docs.md +0 -550
  58. package/generated/docs/components-tag-docs.md +0 -548
  59. package/generated/docs/components-text-docs.md +0 -585
  60. package/generated/docs/components-toaster-docs.md +0 -755
  61. package/generated/docs/components-toggle-docs.md +0 -614
  62. package/generated/docs/components-tooltip-docs.md +0 -747
  63. package/generated/docs/components-validationmessage-docs.md +0 -1161
  64. package/generated/docs/contact-us-docs.md +0 -27
  65. package/generated/docs/extensions-editor-docs.md +0 -1181
  66. package/generated/docs/extensions-editor-recipes-docs.md +0 -89
  67. package/generated/docs/foundations-accessibility-docs.md +0 -40
  68. package/generated/docs/foundations-consistency-docs.md +0 -52
  69. package/generated/docs/foundations-content-docs.md +0 -23
  70. package/generated/docs/foundations-grid-docs.md +0 -74
  71. package/generated/docs/foundations-introduction-docs.md +0 -19
  72. package/generated/docs/foundations-principles-docs.md +0 -70
  73. package/generated/docs/foundations-responsive-breakpoints-docs.md +0 -193
  74. package/generated/docs/foundations-tokens-colour-docs.md +0 -564
  75. package/generated/docs/foundations-tokens-elevation-docs.md +0 -155
  76. package/generated/docs/foundations-tokens-introduction-docs.md +0 -190
  77. package/generated/docs/foundations-tokens-radius-docs.md +0 -71
  78. package/generated/docs/foundations-tokens-spacing-docs.md +0 -89
  79. package/generated/docs/foundations-tokens-typography-docs.md +0 -322
  80. package/generated/docs/foundations-user-experience-docs.md +0 -63
  81. package/generated/docs/foundations-visual-design-docs.md +0 -46
  82. package/generated/docs/foundations-z-index-stacking-docs.md +0 -31
  83. package/generated/docs/frequently-asked-questions-docs.md +0 -53
  84. package/generated/docs/get-started-develop-docs.md +0 -209
  85. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  86. package/generated/docs/guidelines.md +0 -2054
  87. package/generated/docs/introduction-docs.md +0 -87
  88. package/generated/docs/news-version-6-docs.md +0 -93
  89. package/generated/docs/patterns-form-docs.md +0 -3902
  90. package/generated/docs/patterns-form-recipes-docs.md +0 -1370
  91. package/generated/docs/patterns-introduction-docs.md +0 -24
  92. package/generated/docs/patterns-loading-docs.md +0 -4043
  93. package/generated/docs/resources-code-katas-docs.md +0 -29
  94. package/generated/docs/resources-introduction-docs.md +0 -38
  95. package/generated/docs/resources-mcp-server-docs.md +0 -27
  96. package/generated/docs/resources-migration-guides-from-v4-to-v5-docs.md +0 -437
  97. package/generated/docs/styling-props-colour-docs.md +0 -172
  98. package/generated/docs/styling-props-elevation-docs.md +0 -88
  99. package/generated/docs/styling-props-radius-docs.md +0 -86
  100. package/generated/docs/styling-props-reference-docs.md +0 -160
  101. package/generated/docs/styling-props-screen-readers-docs.md +0 -71
  102. package/generated/docs/styling-props-sizing-docs.md +0 -627
  103. package/generated/docs/styling-props-spacing-docs.md +0 -2282
  104. package/generated/docs/styling-props-typography-docs.md +0 -121
  105. package/generated/docs/themes-available-themes-docs.md +0 -66
  106. package/generated/docs/themes-introduction-docs.md +0 -121
  107. package/generated/docs/versions-docs.md +0 -17
  108. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1,689 +0,0 @@
1
- [](#inputcurrency)InputCurrency
2
- ===============================
3
-
4
- Overview
5
- --------
6
-
7
- InputCurrency allows a user to input and interact with currency number. It works just like `IressInput`, with new props `locale` and `currencyCode`. This component meets [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) standard
8
-
9
- * * *
10
-
11
- Updated
12
-
13
- **Recently updated**
14
-
15
- This component has been recently updated with new props. The props have been marked as beta. Please tell us if there are any issues.
16
-
17
- AUD
18
-
19
- Hide code
20
-
21
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
22
-
23
- <IressInputCurrency
24
- currencyCode\="AUD"
25
- defaultValue\={12345.678}
26
- locale\="en-AU"
27
- placeholder\="Enter amount and dispay currency currency separator on blur"
28
- />
29
-
30
- Copy
31
-
32
- [](#props)Props
33
- ---------------
34
-
35
- | Name | Description | Default | Control |
36
- | --- | --- | --- | --- |
37
- | alignRight |
38
- Set input content align to right.
39
-
40
- booleanundefined
41
-
42
-
43
-
44
- | \- | Set object |
45
- | append |
46
-
47
- Content to append to the input field, usually a button or icon.
48
-
49
- ReactNode
50
-
51
-
52
-
53
- | \- | Set object |
54
- | bg |
55
-
56
- **`bg`** sets the background color of an element using the `background-color` css property using the color tokens in the design system.
57
-
58
- We recommend using the following token values for best background contrast:
59
-
60
- * `colour.primary.fill` for primary backgrounds that need to stand out
61
- * `colour.primary.surface` for primary backgrounds that need to be less prominent
62
- * `colour.neutral.10` for the base background color, normally white in light mode or shade of grey in dark mode
63
- * `colour.neutral.20` for a slightly darker background color, used in neutral state components
64
- * `colour.system.danger.fill` for error backgrounds that need to stand out
65
- * `colour.system.danger.surface` for error backgrounds that need to be less prominent
66
- * `colour.system.success.fill` for success backgrounds that need to stand out
67
- * `colour.system.success.surface` for success backgrounds that need to be less prominent
68
- * `colour.system.warning.fill` for warning backgrounds that need to stand out
69
- * `colour.system.warning.surface` for warning backgrounds that need to be less prominent
70
- * `colour.system.info.fill` for info backgrounds that need to stand out
71
- * `colour.system.info.surface` for info backgrounds that need to be less prominent
72
-
73
- ResponsiveProp<ColorToken> | undefined
74
-
75
- | \- | Set object |
76
- | borderRadius |
77
-
78
- The **`border-radius`** CSS property rounds the corners of an element's outer border edge using the radius tokens in the design system.
79
-
80
- | Chrome | Firefox | Safari | Edge | IE |
81
- | --- | --- | --- | --- | --- |
82
- | **4** | **4** | **5** | **12** | **9** |
83
- | 1 _\-x-_ | | 3 _\-x-_ | | |
84
-
85
- ResponsiveProp<RadiusToken> | undefined
86
-
87
- | \- | Set object |
88
- | clearable |
89
-
90
- If `true`, then user can clear the value of the input. Will be ignored if `rows` prop is in use.
91
-
92
- booleanundefined
93
-
94
-
95
-
96
- |
97
-
98
- false
99
-
100
- | Set object |
101
- | color |
102
-
103
- 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`.
104
-
105
- We recommend using the following token values for best color contrast:
106
-
107
- * `colour.primary.onFill` used on top of `colour.primary.fill` for primary text that needs to stand out
108
- * `colour.primary.text` used on top of `colour.primary.surface` or `colour.neutral.10` for primary text that needs to be less prominent
109
- * `colour.neutral.70` used on top of `colour.neutral.10` or `colour.neutral.20` for muted text
110
- * `colour.neutral.80` used on top of `colour.neutral.10` or `colour.neutral.20` for standard text
111
- * `colour.system.danger.onFill` used on top of `colour.system.danger.fill` for error text that needs to stand out
112
- * `colour.system.danger.text` used on top of `colour.system.danger.surface` for error text that needs to be less prominent
113
- * `colour.system.success.onFill` used on top of `colour.system.success.fill` for success text that needs to stand out
114
- * `colour.system.success.text` used on top of `colour.system.success.surface` for success text that needs to be less prominent
115
- * `colour.system.warning.onFill` used on top of `colour.system.warning.fill` for warning text that needs to stand out
116
- * `colour.system.warning.text` used on top of `colour.system.warning.surface` for warning text that needs to be less prominent
117
- * `colour.system.info.onFill` used on top of `colour.system.info.fill` for informative text that needs to stand out
118
- * `colour.system.info.text` used on top of `colour.system.info.surface` for informative text that needs to be less prominent
119
-
120
- ResponsiveProp<ColorToken> | undefined
121
-
122
- | \- | Set object |
123
- | currencyCode |
124
-
125
- Set the currency symbol and appended currency code, default is `AUD`.
126
-
127
- stringundefined
128
-
129
-
130
-
131
- | \- |
132
-
133
- "AUD"
134
-
135
- |
136
- | defaultValue |
137
-
138
- The value of the input. Can be a string or a number. Use for uncontrolled inputs.
139
-
140
- FormControlValueundefined
141
-
142
-
143
-
144
- | \- |
145
-
146
- 12345.678
147
-
148
- |
149
- | focusable |
150
-
151
- 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.
152
-
153
- "true""within"undefined
154
-
155
-
156
-
157
- | \- | Set object |
158
- | formatOptions |
159
-
160
- Pass additional number format options.
161
-
162
- Omit<NumberFormatOptions, "currency"> | undefined
163
-
164
- | \- | Set object |
165
- | formatter |
166
-
167
- 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)
168
-
169
- ((value?: T | undefined) => string | number) | undefined
170
-
171
- | \- | \- |
172
- | hide |
173
-
174
- 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.
175
-
176
- Hide on all breakpoints: `hide: true` Hide on specific breakpoints: `hide: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
177
-
178
- Notes:
179
-
180
- * If you need to hide an element but allow it to be visible to screen readers, use the `srOnly` prop instead.
181
- * Consider if you can conditionally render the element instead of hiding it.
182
-
183
- ResponsiveProp<boolean> | undefined
184
-
185
- | \- | Set object |
186
- | inline |
187
-
188
- Make prepend/append element closer to the input content.
189
-
190
- booleanundefined
191
-
192
-
193
-
194
- | \- | Set object |
195
- | layerStyle |
196
-
197
- 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.
198
-
199
- * `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.
200
- * `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.
201
- * `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.
202
-
203
- ResponsiveProp<"elevation.raised" | "elevation.floating" | "elevation.overflow" | "elevation.focus" | "elevation.focusCompact"> | undefined
204
-
205
- | \- | Set object |
206
- | loading |
207
-
208
- The loading states of the input field. If provided a string, will use that text as the loading message.
209
-
210
- stringbooleanundefined
211
-
212
-
213
-
214
- | \- | Set object |
215
- | locale |
216
-
217
- Set the region of the currency, default is `en-AU`.
218
-
219
- LocalesArgument
220
-
221
-
222
-
223
- | \- |
224
-
225
- "en-AU"
226
-
227
- |
228
- | m |
229
-
230
- The **`m`** property is short for `margin`, and sets the margin area on all four sides of an element.
231
-
232
- 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.
233
-
234
- | Chrome | Firefox | Safari | Edge | IE |
235
- | --- | --- | --- | --- | --- |
236
- | **1** | **1** | **1** | **12** | **3** |
237
-
238
- ResponsiveProp<SpacingToken | "auto"> | undefined
239
-
240
- | \- | Set object |
241
- | maxWidth |
242
-
243
- 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`.
244
-
245
- | Chrome | Firefox | Safari | Edge | IE |
246
- | --- | --- | --- | --- | --- |
247
- | **1** | **1** | **1** | **12** | **7** |
248
-
249
- 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
250
-
251
- | \- | Set object |
252
- | mb |
253
-
254
- 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.
255
-
256
- It uses the spacing tokens in the design system.
257
-
258
- | Chrome | Firefox | Safari | Edge | IE |
259
- | --- | --- | --- | --- | --- |
260
- | **1** | **1** | **1** | **12** | **3** |
261
-
262
- ResponsiveProp<SpacingToken | "auto"> | undefined
263
-
264
- | \- | Set object |
265
- | ml |
266
-
267
- 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.
268
-
269
- It uses the spacing tokens in the design system.
270
-
271
- | Chrome | Firefox | Safari | Edge | IE |
272
- | --- | --- | --- | --- | --- |
273
- | **1** | **1** | **1** | **12** | **3** |
274
-
275
- ResponsiveProp<SpacingToken | "auto"> | undefined
276
-
277
- | \- | Set object |
278
- | mr |
279
-
280
- 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.
281
-
282
- It uses the spacing tokens in the design system.
283
-
284
- | Chrome | Firefox | Safari | Edge | IE |
285
- | --- | --- | --- | --- | --- |
286
- | **1** | **1** | **1** | **12** | **3** |
287
-
288
- ResponsiveProp<SpacingToken | "auto"> | undefined
289
-
290
- | \- | Set object |
291
- | mt |
292
-
293
- 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.
294
-
295
- It uses the spacing tokens in the design system.
296
-
297
- | Chrome | Firefox | Safari | Edge | IE |
298
- | --- | --- | --- | --- | --- |
299
- | **1** | **1** | **1** | **12** | **3** |
300
-
301
- ResponsiveProp<SpacingToken | "auto"> | undefined
302
-
303
- | \- | Set object |
304
- | mx |
305
-
306
- 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.
307
-
308
- 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.
309
-
310
- | Chrome | Firefox | Safari | Edge | IE |
311
- | --- | --- | --- | --- | --- |
312
- | **1** | **1** | **1** | **12** | **3** |
313
-
314
- ResponsiveProp<SpacingToken | "auto"> | undefined
315
-
316
- | \- | Set object |
317
- | my |
318
-
319
- 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.
320
-
321
- 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.
322
-
323
- | Chrome | Firefox | Safari | Edge | IE |
324
- | --- | --- | --- | --- | --- |
325
- | **1** | **1** | **1** | **12** | **3** |
326
-
327
- ResponsiveProp<SpacingToken | "auto"> | undefined
328
-
329
- | \- | Set object |
330
- | noGutter |
331
-
332
- 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.
333
-
334
- booleanundefined
335
-
336
-
337
-
338
- | \- | Set object |
339
- | onChange |
340
-
341
- Emitted when the input value changes with the new changed value.
342
-
343
- ((e: ChangeEvent<HTMLInputElement>, value?: T | undefined) => void) | undefined
344
-
345
- | \- | \- |
346
- | onClear |
347
-
348
- Emitted when the input is manually cleared.
349
-
350
- ((e: ChangeEvent<HTMLInputElement>) => void) | undefined
351
-
352
- | \- | \- |
353
- | p |
354
-
355
- The **`p`** property is short for `padding`, and sets the padding area on all four sides of an element at once.
356
-
357
- 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.
358
-
359
- | Chrome | Firefox | Safari | Edge | IE |
360
- | --- | --- | --- | --- | --- |
361
- | **1** | **1** | **1** | **12** | **3** |
362
-
363
- 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
364
-
365
- | \- | Set object |
366
- | pb |
367
-
368
- The **`pb`** property is short for `padding-bottom` and sets the padding area on the bottom side of an element.
369
-
370
- 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.
371
-
372
- | Chrome | Firefox | Safari | Edge | IE |
373
- | --- | --- | --- | --- | --- |
374
- | **1** | **1** | **1** | **12** | **3** |
375
-
376
- 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
377
-
378
- | \- | Set object |
379
- | pl |
380
-
381
- The **`pl`** property is short for `padding-left` and sets the padding area on the left side of an element.
382
-
383
- 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.
384
-
385
- | Chrome | Firefox | Safari | Edge | IE |
386
- | --- | --- | --- | --- | --- |
387
- | **1** | **1** | **1** | **12** | **3** |
388
-
389
- 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
390
-
391
- | \- | Set object |
392
- | placeholder |
393
-
394
- string
395
-
396
-
397
-
398
- | \- | Enter amount and dispay currency currency separator on blur |
399
- | pr |
400
-
401
- The **`pr`** property is short for `padding-right` and sets the padding area on the right side of an element.
402
-
403
- 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.
404
-
405
- | Chrome | Firefox | Safari | Edge | IE |
406
- | --- | --- | --- | --- | --- |
407
- | **1** | **1** | **1** | **12** | **3** |
408
-
409
- 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
410
-
411
- | \- | Set object |
412
- | prepend |
413
-
414
- Content to prepended to the input field, usually an icon.
415
-
416
- ReactNode
417
-
418
-
419
-
420
- | \- | Set object |
421
- | pt |
422
-
423
- The **`pt`** property is short for `padding-top` and sets the padding area on the top side of an element.
424
-
425
- 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.
426
-
427
- | Chrome | Firefox | Safari | Edge | IE |
428
- | --- | --- | --- | --- | --- |
429
- | **1** | **1** | **1** | **12** | **3** |
430
-
431
- 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
432
-
433
- | \- | Set object |
434
- | px |
435
-
436
- 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.
437
-
438
- 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.
439
-
440
- | Chrome | Firefox | Safari | Edge | IE |
441
- | --- | --- | --- | --- | --- |
442
- | **1** | **1** | **1** | **12** | **3** |
443
-
444
- 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
445
-
446
- | \- | Set object |
447
- | py |
448
-
449
- 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.
450
-
451
- 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.
452
-
453
- | Chrome | Firefox | Safari | Edge | IE |
454
- | --- | --- | --- | --- | --- |
455
- | **1** | **1** | **1** | **12** | **3** |
456
-
457
- 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
458
-
459
- | \- | Set object |
460
- | rowGap |
461
-
462
- The **`row-gap`** CSS property sets the size of the gap (gutter) between an element's rows.
463
-
464
- Note: It only has an effect when used as a direct child of a layout component, such as IressRow, IressStack or IressInline.
465
-
466
- | Chrome | Firefox | Safari | Edge | IE |
467
- | --- | --- | --- | --- | --- |
468
- | **47** | **52** | **10.1** | **16** | No |
469
-
470
- 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
471
-
472
- | \- | Set object |
473
- | rows |
474
-
475
- Number of rows in the `textarea` (when set the component renders a textarea element)
476
-
477
- undefined
478
-
479
-
480
-
481
- | \- | Set object |
482
- | srOnly |
483
-
484
- 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.
485
-
486
- Hide on all breakpoints: `srOnly: true` Hide on specific breakpoints: `srOnly: { xs: false, sm: true, md: false, lg: true, xl: false, xxl: true }`
487
-
488
- ResponsiveProp<boolean> | undefined
489
-
490
- | \- | Set object |
491
- | stretch |
492
-
493
- 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.
494
-
495
- booleanundefined
496
-
497
-
498
-
499
- | \- | Set object |
500
- | textAlign |
501
-
502
- The **`text-align`** CSS property sets the horizontal alignment of the inline-level content inside a block element or table-cell box.
503
-
504
- | Chrome | Firefox | Safari | Edge | IE |
505
- | --- | --- | --- | --- | --- |
506
- | **1** | **1** | **1** | **12** | **3** |
507
-
508
- ResponsiveProp<"center" | "left" | "right" | "inherit" | "justify"> | undefined
509
-
510
- | \- | Set object |
511
- | textStyle |
512
-
513
- Select the typography to be used using the **`textStyle`** prop. These are connected to the typography tokens in the design system.'
514
-
515
- * `typography.body.sm` - Use for small components such as badges and disclaimers, as well as compact variations of tables and lists.
516
- * `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.
517
- * `typography.body.lg` - Use for tag lines, subtitles, and other large text content in the product.
518
- * `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.
519
- * `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.
520
- * `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.
521
- * `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.
522
- * `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.
523
- * `typography.code` - Used to display code snippets in the product, such as in the API documentation.
524
-
525
- 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
526
-
527
- | \- | Set object |
528
- | value |
529
-
530
- The value of the input. Can be a string or a number. Use for controlled inputs.
531
-
532
- FormControlValueundefined
533
-
534
-
535
-
536
- | \- | Set object |
537
- | width |
538
-
539
- The width of the input.
540
-
541
- "2""4""6""8""10""12""16""25perc"Show 4 more...
542
-
543
-
544
-
545
- | \- | Set object |
546
- | withSymbol |
547
-
548
- Set the currency symbol.
549
-
550
- booleanundefined
551
-
552
-
553
-
554
- | \- | Set object |
555
-
556
- [](#examples)Examples
557
- ---------------------
558
-
559
- ### [](#different-locale-and-currencycode)Different Locale and CurrencyCode
560
-
561
- Display the GBP with `locale="en-GB"` and `currencyCode="GBP"` props (must pass both together)
562
-
563
- GBP
564
-
565
- Hide code
566
-
567
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
568
-
569
- <IressInputCurrency
570
- currencyCode\="GBP"
571
- defaultValue\={12345.678}
572
- locale\="en-GB"
573
- placeholder\="Enter amount and dispay currency currency separator on blur"
574
- />
575
-
576
- Copy
577
-
578
- Display the JPY with `locale="ja-JPY"` and `currencyCode="JPY"` props (must pass both together)
579
-
580
- JPY
581
-
582
- Hide code
583
-
584
- \[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; }
585
-
586
- <IressInputCurrency
587
- currencyCode\="JPY"
588
- defaultValue\={12345678}
589
- locale\="ja-JP"
590
- placeholder\="Enter amount and dispay currency currency separator on blur"
591
- />
592
-
593
- Copy
594
-
595
- ### [](#with-symbol)With Symbol
596
-
597
- Display the currency symbol with `withSymbol` props
598
-
599
- AUD
600
-
601
- Hide code
602
-
603
- \[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; }
604
-
605
- <IressInputCurrency
606
- currencyCode\="AUD"
607
- defaultValue\={12345.678}
608
- locale\="en-AU"
609
- placeholder\="Enter amount and dispay currency symbol on blur"
610
- withSymbol
611
- />
612
-
613
- Copy
614
-
615
- ### [](#more-format-options)More Format Options
616
-
617
- Pass more format options with `formatOptions` props. More format options in [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat)
618
-
619
- AUD
620
-
621
- Hide code
622
-
623
- \[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; }
624
-
625
- <IressInputCurrency
626
- currencyCode\="AUD"
627
- defaultValue\={12345.678}
628
- formatOptions\={{
629
- maximumFractionDigits: 4,
630
- minimumFractionDigits: 2
631
- }}
632
- locale\="en-AU"
633
- placeholder\="Pass and play around with other native Intl.NumberFormat options to the code sandbox"
634
- />
635
-
636
- Copy
637
-
638
- ### [](#read-only)Read Only
639
-
640
- The `readOnly` prop can be set to prevent the user from changing the value of the input. This will change the input to a custom read-only style and the user will not be able to interact with the input. If you want to make the number align to right, please pass `alignRight` together.
641
-
642
- $12,345.68
643
-
644
- AUD
645
-
646
- Hide code
647
-
648
- \[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; }
649
-
650
- <IressInputCurrency
651
- alignRight
652
- currencyCode\="AUD"
653
- defaultValue\={12345.678}
654
- locale\="en-AU"
655
- readOnly
656
- withSymbol
657
- />
658
-
659
- Copy
660
-
661
- ### [](#align-right)Align Right
662
-
663
- Set the input content align to right with `alignRight` prop, which is more friendly for number input.
664
-
665
- AUD
666
-
667
- Hide code
668
-
669
- \[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; }
670
-
671
- <IressInputCurrency
672
- alignRight
673
- currencyCode\="AUD"
674
- defaultValue\={12345.678}
675
- locale\="en-AU"
676
- />
677
-
678
- Copy
679
-
680
- On this page
681
-
682
- * [Overview](#overview)
683
- * [Props](#props)
684
- * [Examples](#examples)
685
- * [Different Locale and CurrencyCode](#different-locale-and-currencycode)
686
- * [With Symbol](#with-symbol)
687
- * [More Format Options](#more-format-options)
688
- * [Read Only](#read-only)
689
- * [Align Right](#align-right)