@iress-oss/ids-mcp-server 6.0.0-alpha.1-canary-20251204032753-fe18cab → 6.0.0-alpha.1-canary-20251204040305-3639454

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 (99) hide show
  1. package/generated/docs/components_components-alert-docs.md +1054 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3304 -0
  3. package/generated/docs/components_components-autocomplete-recipes-docs.md +98 -0
  4. package/generated/docs/components_components-badge-docs.md +312 -0
  5. package/generated/docs/components_components-button-docs.md +2339 -0
  6. package/generated/docs/components_components-buttongroup-docs.md +980 -0
  7. package/generated/docs/components_components-card-docs.md +1970 -0
  8. package/generated/docs/components_components-checkbox-docs.md +1083 -0
  9. package/generated/docs/components_components-checkboxgroup-docs.md +1597 -0
  10. package/generated/docs/components_components-checkboxgroup-recipes-docs.md +209 -0
  11. package/generated/docs/components_components-col-docs.md +755 -0
  12. package/generated/docs/components_components-container-docs.md +172 -0
  13. package/generated/docs/components_components-divider-docs.md +235 -0
  14. package/generated/docs/components_components-expander-docs.md +428 -0
  15. package/generated/docs/components_components-field-docs.md +3345 -0
  16. package/generated/docs/components_components-filter-docs.md +4091 -0
  17. package/generated/docs/components_components-hide-docs.md +450 -0
  18. package/generated/docs/components_components-icon-docs.md +1017 -0
  19. package/generated/docs/components_components-image-docs.md +168 -0
  20. package/generated/docs/components_components-inline-docs.md +1962 -0
  21. package/generated/docs/components_components-input-docs.md +1388 -0
  22. package/generated/docs/components_components-input-recipes-docs.md +349 -0
  23. package/generated/docs/components_components-inputcurrency-docs.md +636 -0
  24. package/generated/docs/components_components-inputcurrency-recipes-docs.md +208 -0
  25. package/generated/docs/components_components-introduction-docs.md +448 -0
  26. package/generated/docs/components_components-label-docs.md +229 -0
  27. package/generated/docs/components_components-link-docs.md +454 -0
  28. package/generated/docs/components_components-menu-docs.md +2219 -0
  29. package/generated/docs/components_components-menu-menuitem-docs.md +1455 -0
  30. package/generated/docs/components_components-modal-docs.md +2002 -0
  31. package/generated/docs/components_components-panel-docs.md +342 -0
  32. package/generated/docs/components_components-placeholder-docs.md +98 -0
  33. package/generated/docs/components_components-popover-docs.md +1631 -0
  34. package/generated/docs/components_components-popover-recipes-docs.md +537 -0
  35. package/generated/docs/components_components-progress-docs.md +128 -0
  36. package/generated/docs/components_components-provider-docs.md +123 -0
  37. package/generated/docs/components_components-radio-docs.md +499 -0
  38. package/generated/docs/components_components-radiogroup-docs.md +1573 -0
  39. package/generated/docs/components_components-readonly-docs.md +277 -0
  40. package/generated/docs/components_components-richselect-docs.md +6101 -0
  41. package/generated/docs/components_components-row-docs.md +2172 -0
  42. package/generated/docs/components_components-select-docs.md +1110 -0
  43. package/generated/docs/components_components-skeleton-docs.md +467 -0
  44. package/generated/docs/components_components-skeleton-recipes-docs.md +110 -0
  45. package/generated/docs/components_components-skiplink-docs.md +220 -0
  46. package/generated/docs/components_components-slideout-docs.md +1910 -0
  47. package/generated/docs/components_components-slider-docs.md +1284 -0
  48. package/generated/docs/components_components-spinner-docs.md +90 -0
  49. package/generated/docs/components_components-stack-docs.md +730 -0
  50. package/generated/docs/components_components-table-docs.md +4038 -0
  51. package/generated/docs/components_components-tabset-docs.md +955 -0
  52. package/generated/docs/components_components-tabset-tab-docs.md +342 -0
  53. package/generated/docs/components_components-tag-docs.md +410 -0
  54. package/generated/docs/components_components-text-docs.md +593 -0
  55. package/generated/docs/components_components-toaster-docs.md +451 -0
  56. package/generated/docs/components_components-toggle-docs.md +513 -0
  57. package/generated/docs/components_components-tooltip-docs.md +564 -0
  58. package/generated/docs/components_components-validationmessage-docs.md +608 -0
  59. package/generated/docs/components_contact-us-docs.md +9 -0
  60. package/generated/docs/components_foundations-accessibility-docs.md +33 -0
  61. package/generated/docs/components_foundations-consistency-docs.md +44 -0
  62. package/generated/docs/components_foundations-content-docs.md +18 -0
  63. package/generated/docs/components_foundations-introduction-docs.md +17 -0
  64. package/generated/docs/components_foundations-principles-docs.md +60 -0
  65. package/generated/docs/components_foundations-responsive-layout-docs.md +2692 -0
  66. package/generated/docs/components_foundations-user-experience-docs.md +53 -0
  67. package/generated/docs/components_foundations-visual-design-docs.md +39 -0
  68. package/generated/docs/components_foundations-z-index-stacking-docs.md +288 -0
  69. package/generated/docs/components_frequently-asked-questions-docs.md +44 -0
  70. package/generated/docs/components_get-started-develop-docs.md +47 -0
  71. package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
  72. package/generated/docs/components_introduction-docs.md +85 -0
  73. package/generated/docs/components_patterns-form-docs.md +2469 -0
  74. package/generated/docs/components_patterns-form-recipes-docs.md +1597 -0
  75. package/generated/docs/components_patterns-introduction-docs.md +31 -0
  76. package/generated/docs/components_patterns-loading-docs.md +1908 -0
  77. package/generated/docs/components_patterns-shadow-docs.md +195 -0
  78. package/generated/docs/components_resources-code-katas-docs.md +25 -0
  79. package/generated/docs/components_resources-introduction-docs.md +28 -0
  80. package/generated/docs/components_resources-mcp-server-docs.md +23 -0
  81. package/generated/docs/components_resources-migration-guides-from-v4-to-v5-docs.md +142 -0
  82. package/generated/docs/components_styling-props-colour-docs.md +91 -0
  83. package/generated/docs/components_styling-props-elevation-docs.md +69 -0
  84. package/generated/docs/components_styling-props-radius-docs.md +63 -0
  85. package/generated/docs/components_styling-props-reference-docs.md +160 -0
  86. package/generated/docs/components_styling-props-screen-readers-docs.md +66 -0
  87. package/generated/docs/components_styling-props-sizing-docs.md +217 -0
  88. package/generated/docs/components_styling-props-spacing-docs.md +545 -0
  89. package/generated/docs/components_styling-props-typography-docs.md +66 -0
  90. package/generated/docs/components_versions-docs.md +14 -0
  91. package/generated/docs/guidelines.md +3083 -0
  92. package/generated/docs/introduction-docs.md +37 -0
  93. package/generated/docs/tokens_colour-docs.md +479 -0
  94. package/generated/docs/tokens_elevation-docs.md +39 -0
  95. package/generated/docs/tokens_introduction-docs.md +150 -0
  96. package/generated/docs/tokens_radius-docs.md +67 -0
  97. package/generated/docs/tokens_spacing-docs.md +87 -0
  98. package/generated/docs/tokens_typography-docs.md +305 -0
  99. package/package.json +2 -2
@@ -0,0 +1,1110 @@
1
+ Select
2
+ ======
3
+
4
+ Overview
5
+ --------
6
+
7
+ Selects allow users to interact with data and select from a predetermined list of options.
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
+ [](./iframe.html?id=components-select--options)
18
+
19
+ Option 1Option 2Option 3Option 4Option 5
20
+
21
+ ```
22
+
23
+ <IressSelect\>
24
+ <option value\="1"\>
25
+ Option 1 </option\>
26
+ <option value\="2"\>
27
+ Option 2 </option\>
28
+ <option value\="3"\>
29
+ Option 3 </option\>
30
+ <option value\="4"\>
31
+ Option 4 </option\>
32
+ <option value\="5"\>
33
+ Option 5 </option\>
34
+ </IressSelect\>
35
+
36
+ ```
37
+
38
+ Props
39
+ -----
40
+
41
+ | Name | Description | Default | Control |
42
+ | --- | --- | --- | --- |
43
+ | children |
44
+ The `option` and `optgroup` elements to render within the select.
45
+
46
+ union
47
+
48
+
49
+
50
+ | \- | \- |
51
+ | defaultValue |
52
+
53
+ Value of selected option for uncontrolled select.
54
+
55
+ T
56
+
57
+
58
+
59
+ | \- | Set object |
60
+ | name |
61
+
62
+ Identifier for select.
63
+
64
+ string
65
+
66
+
67
+
68
+ | \- | Set string |
69
+ | onChange |
70
+
71
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
72
+
73
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
74
+
75
+ | \- | \- |
76
+ | placeholder |
77
+
78
+ Adds an `option` as the first element with the placeholder text and no value.
79
+
80
+ string
81
+
82
+
83
+
84
+ | \- | Set string |
85
+ | readOnly |
86
+
87
+ If `true`, the user cannot modify the value.
88
+
89
+ TReadonly
90
+
91
+
92
+
93
+ | \- | Set object |
94
+ | required |
95
+
96
+ Mark the select as a required field.
97
+
98
+ boolean
99
+
100
+
101
+
102
+ | \- | Set boolean |
103
+ | value |
104
+
105
+ Value of selected option for controlled select.
106
+
107
+ T
108
+
109
+
110
+
111
+ | \- | Set object |
112
+ | width |
113
+
114
+ The width of the select.
115
+
116
+ intersection\['width'\]
117
+
118
+ | \- | Set object |
119
+
120
+ Usage
121
+ -----
122
+
123
+ Selects allow users to interact with data and select from a predetermined list of options, usually when you are constrained for space and have a limited number of options to choose from.
124
+
125
+ ### When To Use
126
+
127
+ * If you have less than 5 options to choose from, consider using `IressRadioGroup` instead.
128
+ * If you need to display rich content in your selects (eg. icons and metadata), you can use `IressRichSelect`.
129
+ * Otherwise, `IressSelect` is the way to go.
130
+
131
+ Examples
132
+ --------
133
+
134
+ ### Options
135
+
136
+ Individual options can be passed directly into `IressSelect` using the native `option` element.
137
+
138
+ **Note:** The `mapSelectOptions` helper function, originally used to map options to `<option>` elements, is now deprecated. Instead, you can use `array.map` to map the options to `<option>` elements.
139
+
140
+ [](./iframe.html?id=components-select--options)
141
+
142
+ Option 1Option 2Option 3Option 4Option 5
143
+
144
+ ```
145
+
146
+ <IressSelect\>
147
+ <option value\="1"\>
148
+ Option 1 </option\>
149
+ <option value\="2"\>
150
+ Option 2 </option\>
151
+ <option value\="3"\>
152
+ Option 3 </option\>
153
+ <option value\="4"\>
154
+ Option 4 </option\>
155
+ <option value\="5"\>
156
+ Option 5 </option\>
157
+ </IressSelect\>
158
+
159
+ ```
160
+
161
+ #### Props
162
+
163
+ | Name | Description | Default | Control |
164
+ | --- | --- | --- | --- |
165
+ | children |
166
+ The `option` and `optgroup` elements to render within the select.
167
+
168
+ union
169
+
170
+
171
+
172
+ | \- | \- |
173
+ | defaultValue |
174
+
175
+ Value of selected option for uncontrolled select.
176
+
177
+ T
178
+
179
+
180
+
181
+ | \- | Set object |
182
+ | name |
183
+
184
+ Identifier for select.
185
+
186
+ string
187
+
188
+
189
+
190
+ | \- | Set string |
191
+ | onChange |
192
+
193
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
194
+
195
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
196
+
197
+ | \- | \- |
198
+ | placeholder |
199
+
200
+ Adds an `option` as the first element with the placeholder text and no value.
201
+
202
+ string
203
+
204
+
205
+
206
+ | \- | Set string |
207
+ | readOnly |
208
+
209
+ If `true`, the user cannot modify the value.
210
+
211
+ TReadonly
212
+
213
+
214
+
215
+ | \- | Set object |
216
+ | required |
217
+
218
+ Mark the select as a required field.
219
+
220
+ boolean
221
+
222
+
223
+
224
+ | \- | Set boolean |
225
+ | value |
226
+
227
+ Value of selected option for controlled select.
228
+
229
+ T
230
+
231
+
232
+
233
+ | \- | Set object |
234
+ | width |
235
+
236
+ The width of the select.
237
+
238
+ intersection\['width'\]
239
+
240
+ | \- | Set object |
241
+
242
+ ### Option groups
243
+
244
+ Just like the native `<select />` element, `IressSelect` supports option groups.
245
+
246
+ [](./iframe.html?id=components-select--option-groups)
247
+
248
+ Group 1 / Option 1Group 1 / Option 2Group 1 / Option 3Group 1 / Option 4Group 1 / Option 5Group 2 / Option 1Group 2 / Option 2Group 2 / Option 3Group 2 / Option 4Group 2 / Option 5
249
+
250
+ ```
251
+
252
+ <IressSelect\>
253
+ <optgroup label\="Group 1"\>
254
+ <option value\="1-1"\>
255
+ Group 1 / Option 1 </option\>
256
+ <option value\="1-2"\>
257
+ Group 1 / Option 2 </option\>
258
+ <option value\="1-3"\>
259
+ Group 1 / Option 3 </option\>
260
+ <option value\="1-4"\>
261
+ Group 1 / Option 4 </option\>
262
+ <option value\="1-5"\>
263
+ Group 1 / Option 5 </option\>
264
+ </optgroup\>
265
+ <optgroup label\="Group 2"\>
266
+ <option value\="2-1"\>
267
+ Group 2 / Option 1 </option\>
268
+ <option value\="2-2"\>
269
+ Group 2 / Option 2 </option\>
270
+ <option value\="2-3"\>
271
+ Group 2 / Option 3 </option\>
272
+ <option value\="2-4"\>
273
+ Group 2 / Option 4 </option\>
274
+ <option value\="2-5"\>
275
+ Group 2 / Option 5 </option\>
276
+ </optgroup\>
277
+ </IressSelect\>
278
+
279
+ ```
280
+
281
+ #### Props
282
+
283
+ | Name | Description | Default | Control |
284
+ | --- | --- | --- | --- |
285
+ | children |
286
+ The `option` and `optgroup` elements to render within the select.
287
+
288
+ union
289
+
290
+
291
+
292
+ | \- | \- |
293
+ | defaultValue |
294
+
295
+ Value of selected option for uncontrolled select.
296
+
297
+ T
298
+
299
+
300
+
301
+ | \- | Set object |
302
+ | name |
303
+
304
+ Identifier for select.
305
+
306
+ string
307
+
308
+
309
+
310
+ | \- | Set string |
311
+ | onChange |
312
+
313
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
314
+
315
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
316
+
317
+ | \- | \- |
318
+ | placeholder |
319
+
320
+ Adds an `option` as the first element with the placeholder text and no value.
321
+
322
+ string
323
+
324
+
325
+
326
+ | \- | Set string |
327
+ | readOnly |
328
+
329
+ If `true`, the user cannot modify the value.
330
+
331
+ TReadonly
332
+
333
+
334
+
335
+ | \- | Set object |
336
+ | required |
337
+
338
+ Mark the select as a required field.
339
+
340
+ boolean
341
+
342
+
343
+
344
+ | \- | Set boolean |
345
+ | value |
346
+
347
+ Value of selected option for controlled select.
348
+
349
+ T
350
+
351
+
352
+
353
+ | \- | Set object |
354
+ | width |
355
+
356
+ The width of the select.
357
+
358
+ intersection\['width'\]
359
+
360
+ | \- | Set object |
361
+
362
+ ### Non-string values
363
+
364
+ If you would like to introduce options with non-string values, you can use the `IressSelectOption` component to define your options.
365
+
366
+ **Note:** Since the `onChange` event of a select relies on strings, it will try to find a string representation of the value. If you are using non-string values, you will need to ensure the `toString` conversion is unique per option.
367
+
368
+ [](./iframe.html?id=components-select--non-string-values)
369
+
370
+ Option 1Option 2Group 1 / Option 1Group 1 / Option 2Group 1 / Option 3
371
+
372
+ ```
373
+
374
+ <IressSelect\>
375
+ <IressSelectOption value\={1}\>
376
+ Option 1 </IressSelectOption\>
377
+ <IressSelectOption value\={2}\>
378
+ Option 2 </IressSelectOption\>
379
+ <optgroup label\="Group 1"\>
380
+ <IressSelectOption value\="1-1"\>
381
+ Group 1 / Option 1 </IressSelectOption\>
382
+ <IressSelectOption value\="1-2"\>
383
+ Group 1 / Option 2 </IressSelectOption\>
384
+ <IressSelectOption value\="1-3"\>
385
+ Group 1 / Option 3 </IressSelectOption\>
386
+ </optgroup\>
387
+ </IressSelect\>
388
+
389
+ ```
390
+
391
+ #### Props
392
+
393
+ | Name | Description | Default | Control |
394
+ | --- | --- | --- | --- |
395
+ | children |
396
+ The `option` and `optgroup` elements to render within the select.
397
+
398
+ union
399
+
400
+
401
+
402
+ | \- | \- |
403
+ | defaultValue |
404
+
405
+ Value of selected option for uncontrolled select.
406
+
407
+ T
408
+
409
+
410
+
411
+ | \- | Set object |
412
+ | name |
413
+
414
+ Identifier for select.
415
+
416
+ string
417
+
418
+
419
+
420
+ | \- | Set string |
421
+ | onChange |
422
+
423
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
424
+
425
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
426
+
427
+ | \- | \- |
428
+ | placeholder |
429
+
430
+ Adds an `option` as the first element with the placeholder text and no value.
431
+
432
+ string
433
+
434
+
435
+
436
+ | \- | Set string |
437
+ | readOnly |
438
+
439
+ If `true`, the user cannot modify the value.
440
+
441
+ TReadonly
442
+
443
+
444
+
445
+ | \- | Set object |
446
+ | required |
447
+
448
+ Mark the select as a required field.
449
+
450
+ boolean
451
+
452
+
453
+
454
+ | \- | Set boolean |
455
+ | value |
456
+
457
+ Value of selected option for controlled select.
458
+
459
+ T
460
+
461
+
462
+
463
+ | \- | Set object |
464
+ | width |
465
+
466
+ The width of the select.
467
+
468
+ intersection\['width'\]
469
+
470
+ | \- | Set object |
471
+
472
+ ### Placeholder
473
+
474
+ A default placeholder option can be set using the `placeholder` prop.
475
+
476
+ [](./iframe.html?id=components-select--placeholder)
477
+
478
+ Please select an optionOption 1Option 2Option 3Option 4Option 5
479
+
480
+ ```
481
+
482
+ <IressSelect placeholder\="Please select an option"\>
483
+ <option value\="1"\>
484
+ Option 1 </option\>
485
+ <option value\="2"\>
486
+ Option 2 </option\>
487
+ <option value\="3"\>
488
+ Option 3 </option\>
489
+ <option value\="4"\>
490
+ Option 4 </option\>
491
+ <option value\="5"\>
492
+ Option 5 </option\>
493
+ </IressSelect\>
494
+
495
+ ```
496
+
497
+ #### Props
498
+
499
+ | Name | Description | Default | Control |
500
+ | --- | --- | --- | --- |
501
+ | children |
502
+ The `option` and `optgroup` elements to render within the select.
503
+
504
+ union
505
+
506
+
507
+
508
+ | \- | \- |
509
+ | defaultValue |
510
+
511
+ Value of selected option for uncontrolled select.
512
+
513
+ T
514
+
515
+
516
+
517
+ | \- | Set object |
518
+ | name |
519
+
520
+ Identifier for select.
521
+
522
+ string
523
+
524
+
525
+
526
+ | \- | Set string |
527
+ | onChange |
528
+
529
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
530
+
531
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
532
+
533
+ | \- | \- |
534
+ | placeholder |
535
+
536
+ Adds an `option` as the first element with the placeholder text and no value.
537
+
538
+ string
539
+
540
+
541
+
542
+ | \- | Please select an option |
543
+ | readOnly |
544
+
545
+ If `true`, the user cannot modify the value.
546
+
547
+ TReadonly
548
+
549
+
550
+
551
+ | \- | Set object |
552
+ | required |
553
+
554
+ Mark the select as a required field.
555
+
556
+ boolean
557
+
558
+
559
+
560
+ | \- | Set boolean |
561
+ | value |
562
+
563
+ Value of selected option for controlled select.
564
+
565
+ T
566
+
567
+
568
+
569
+ | \- | Set object |
570
+ | width |
571
+
572
+ The width of the select.
573
+
574
+ intersection\['width'\]
575
+
576
+ | \- | Set object |
577
+
578
+ ### Selected option
579
+
580
+ An option can be selected by using either the `defaultValue` prop for uncontrolled components, or the `value` prop for controlled components.
581
+
582
+ [](./iframe.html?id=components-select--selected-option)
583
+
584
+ Option 1Option 2Option 3Option 4Option 5
585
+
586
+ ```
587
+
588
+ <IressSelect defaultValue\={3}\>
589
+ <option value\="1"\>
590
+ Option 1 </option\>
591
+ <option value\="2"\>
592
+ Option 2 </option\>
593
+ <option value\="3"\>
594
+ Option 3 </option\>
595
+ <option value\="4"\>
596
+ Option 4 </option\>
597
+ <option value\="5"\>
598
+ Option 5 </option\>
599
+ </IressSelect\>
600
+
601
+ ```
602
+
603
+ #### Props
604
+
605
+ | Name | Description | Default | Control |
606
+ | --- | --- | --- | --- |
607
+ | children |
608
+ The `option` and `optgroup` elements to render within the select.
609
+
610
+ union
611
+
612
+
613
+
614
+ | \- | \- |
615
+ | defaultValue |
616
+
617
+ Value of selected option for uncontrolled select.
618
+
619
+ T
620
+
621
+
622
+
623
+ | \- |
624
+
625
+ 3
626
+
627
+ |
628
+ | name |
629
+
630
+ Identifier for select.
631
+
632
+ string
633
+
634
+
635
+
636
+ | \- | Set string |
637
+ | onChange |
638
+
639
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
640
+
641
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
642
+
643
+ | \- | \- |
644
+ | placeholder |
645
+
646
+ Adds an `option` as the first element with the placeholder text and no value.
647
+
648
+ string
649
+
650
+
651
+
652
+ | \- | Set string |
653
+ | readOnly |
654
+
655
+ If `true`, the user cannot modify the value.
656
+
657
+ TReadonly
658
+
659
+
660
+
661
+ | \- | Set object |
662
+ | required |
663
+
664
+ Mark the select as a required field.
665
+
666
+ boolean
667
+
668
+
669
+
670
+ | \- | Set boolean |
671
+ | value |
672
+
673
+ Value of selected option for controlled select.
674
+
675
+ T
676
+
677
+
678
+
679
+ | \- | Set object |
680
+ | width |
681
+
682
+ The width of the select.
683
+
684
+ intersection\['width'\]
685
+
686
+ | \- | Set object |
687
+
688
+ ### Sizing
689
+
690
+ Selects can be resized to suit a specific number of characters. This sets an expectation of what data is to be presented; for example using the `16` width for a credit card number.
691
+
692
+ Widths can also be set as a percentage, allowing the input to take up a proportion of the width of its container.
693
+
694
+ [](./iframe.html?id=components-select--sizing)
695
+
696
+ 2Option 1Option 2Option 3Option 4Option 5
697
+
698
+ 4Option 1Option 2Option 3Option 4Option 5
699
+
700
+ 6Option 1Option 2Option 3Option 4Option 5
701
+
702
+ 8Option 1Option 2Option 3Option 4Option 5
703
+
704
+ 10Option 1Option 2Option 3Option 4Option 5
705
+
706
+ 12Option 1Option 2Option 3Option 4Option 5
707
+
708
+ 16Option 1Option 2Option 3Option 4Option 5
709
+
710
+ 25percOption 1Option 2Option 3Option 4Option 5
711
+
712
+ 50percOption 1Option 2Option 3Option 4Option 5
713
+
714
+ 75percOption 1Option 2Option 3Option 4Option 5
715
+
716
+ 100percOption 1Option 2Option 3Option 4Option 5
717
+
718
+ ```
719
+
720
+ <IressStack gap\="md"\>
721
+ <div\>
722
+ <IressSelect
723
+ placeholder\="2"
724
+ width\="2"
725
+ \>
726
+ <option value\="1"\>
727
+ Option 1 </option\>
728
+ <option value\="2"\>
729
+ Option 2 </option\>
730
+ <option value\="3"\>
731
+ Option 3 </option\>
732
+ <option value\="4"\>
733
+ Option 4 </option\>
734
+ <option value\="5"\>
735
+ Option 5 </option\>
736
+ </IressSelect\>
737
+ </div\>
738
+ <div\>
739
+ <IressSelect
740
+ placeholder\="4"
741
+ width\="4"
742
+ \>
743
+ <option value\="1"\>
744
+ Option 1 </option\>
745
+ <option value\="2"\>
746
+ Option 2 </option\>
747
+ <option value\="3"\>
748
+ Option 3 </option\>
749
+ <option value\="4"\>
750
+ Option 4 </option\>
751
+ <option value\="5"\>
752
+ Option 5 </option\>
753
+ </IressSelect\>
754
+ </div\>
755
+ <div\>
756
+ <IressSelect
757
+ placeholder\="6"
758
+ width\="6"
759
+ \>
760
+ <option value\="1"\>
761
+ Option 1 </option\>
762
+ <option value\="2"\>
763
+ Option 2 </option\>
764
+ <option value\="3"\>
765
+ Option 3 </option\>
766
+ <option value\="4"\>
767
+ Option 4 </option\>
768
+ <option value\="5"\>
769
+ Option 5 </option\>
770
+ </IressSelect\>
771
+ </div\>
772
+ <div\>
773
+ <IressSelect
774
+ placeholder\="8"
775
+ width\="8"
776
+ \>
777
+ <option value\="1"\>
778
+ Option 1 </option\>
779
+ <option value\="2"\>
780
+ Option 2 </option\>
781
+ <option value\="3"\>
782
+ Option 3 </option\>
783
+ <option value\="4"\>
784
+ Option 4 </option\>
785
+ <option value\="5"\>
786
+ Option 5 </option\>
787
+ </IressSelect\>
788
+ </div\>
789
+ <div\>
790
+ <IressSelect
791
+ placeholder\="10"
792
+ width\="10"
793
+ \>
794
+ <option value\="1"\>
795
+ Option 1 </option\>
796
+ <option value\="2"\>
797
+ Option 2 </option\>
798
+ <option value\="3"\>
799
+ Option 3 </option\>
800
+ <option value\="4"\>
801
+ Option 4 </option\>
802
+ <option value\="5"\>
803
+ Option 5 </option\>
804
+ </IressSelect\>
805
+ </div\>
806
+ <div\>
807
+ <IressSelect
808
+ placeholder\="12"
809
+ width\="12"
810
+ \>
811
+ <option value\="1"\>
812
+ Option 1 </option\>
813
+ <option value\="2"\>
814
+ Option 2 </option\>
815
+ <option value\="3"\>
816
+ Option 3 </option\>
817
+ <option value\="4"\>
818
+ Option 4 </option\>
819
+ <option value\="5"\>
820
+ Option 5 </option\>
821
+ </IressSelect\>
822
+ </div\>
823
+ <div\>
824
+ <IressSelect
825
+ placeholder\="16"
826
+ width\="16"
827
+ \>
828
+ <option value\="1"\>
829
+ Option 1 </option\>
830
+ <option value\="2"\>
831
+ Option 2 </option\>
832
+ <option value\="3"\>
833
+ Option 3 </option\>
834
+ <option value\="4"\>
835
+ Option 4 </option\>
836
+ <option value\="5"\>
837
+ Option 5 </option\>
838
+ </IressSelect\>
839
+ </div\>
840
+ <div\>
841
+ <IressSelect
842
+ placeholder\="25perc"
843
+ width\="25perc"
844
+ \>
845
+ <option value\="1"\>
846
+ Option 1 </option\>
847
+ <option value\="2"\>
848
+ Option 2 </option\>
849
+ <option value\="3"\>
850
+ Option 3 </option\>
851
+ <option value\="4"\>
852
+ Option 4 </option\>
853
+ <option value\="5"\>
854
+ Option 5 </option\>
855
+ </IressSelect\>
856
+ </div\>
857
+ <div\>
858
+ <IressSelect
859
+ placeholder\="50perc"
860
+ width\="50perc"
861
+ \>
862
+ <option value\="1"\>
863
+ Option 1 </option\>
864
+ <option value\="2"\>
865
+ Option 2 </option\>
866
+ <option value\="3"\>
867
+ Option 3 </option\>
868
+ <option value\="4"\>
869
+ Option 4 </option\>
870
+ <option value\="5"\>
871
+ Option 5 </option\>
872
+ </IressSelect\>
873
+ </div\>
874
+ <div\>
875
+ <IressSelect
876
+ placeholder\="75perc"
877
+ width\="75perc"
878
+ \>
879
+ <option value\="1"\>
880
+ Option 1 </option\>
881
+ <option value\="2"\>
882
+ Option 2 </option\>
883
+ <option value\="3"\>
884
+ Option 3 </option\>
885
+ <option value\="4"\>
886
+ Option 4 </option\>
887
+ <option value\="5"\>
888
+ Option 5 </option\>
889
+ </IressSelect\>
890
+ </div\>
891
+ <div\>
892
+ <IressSelect
893
+ placeholder\="100perc"
894
+ width\="100perc"
895
+ \>
896
+ <option value\="1"\>
897
+ Option 1 </option\>
898
+ <option value\="2"\>
899
+ Option 2 </option\>
900
+ <option value\="3"\>
901
+ Option 3 </option\>
902
+ <option value\="4"\>
903
+ Option 4 </option\>
904
+ <option value\="5"\>
905
+ Option 5 </option\>
906
+ </IressSelect\>
907
+ </div\>
908
+ </IressStack\>
909
+
910
+ ```
911
+
912
+ #### Props
913
+
914
+ | Name | Description | Default | Control |
915
+ | --- | --- | --- | --- |
916
+ | children |
917
+ The `option` and `optgroup` elements to render within the select.
918
+
919
+ union
920
+
921
+
922
+
923
+ | \- | \- |
924
+ | defaultValue |
925
+
926
+ Value of selected option for uncontrolled select.
927
+
928
+ T
929
+
930
+
931
+
932
+ | \- | Set object |
933
+ | name |
934
+
935
+ Identifier for select.
936
+
937
+ string
938
+
939
+
940
+
941
+ | \- | Set string |
942
+ | onChange |
943
+
944
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
945
+
946
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
947
+
948
+ | \- | \- |
949
+ | placeholder |
950
+
951
+ Adds an `option` as the first element with the placeholder text and no value.
952
+
953
+ string
954
+
955
+
956
+
957
+ | \- | \- |
958
+ | readOnly |
959
+
960
+ If `true`, the user cannot modify the value.
961
+
962
+ TReadonly
963
+
964
+
965
+
966
+ | \- | Set object |
967
+ | required |
968
+
969
+ Mark the select as a required field.
970
+
971
+ boolean
972
+
973
+
974
+
975
+ | \- | Set boolean |
976
+ | value |
977
+
978
+ Value of selected option for controlled select.
979
+
980
+ T
981
+
982
+
983
+
984
+ | \- | Set object |
985
+ | width |
986
+
987
+ The width of the select.
988
+
989
+ intersection\['width'\]
990
+
991
+ | \- | \- |
992
+
993
+ ### Read only
994
+
995
+ Unlike the standard HTML `select` element, the `IressSelect` component can be set to `readOnly`. In this case, an `IressReadonly` component will render the selected label text, while the selected value is rendered in a hidden HTML `input` element for form submission.
996
+
997
+ 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).
998
+
999
+ [](./iframe.html?id=components-select--read-only)
1000
+
1001
+ Option 2
1002
+
1003
+ ```
1004
+
1005
+ <IressSelect
1006
+ readOnly
1007
+ value\="2"
1008
+ \>
1009
+ <option value\="1"\>
1010
+ Option 1 </option\>
1011
+ <option value\="2"\>
1012
+ Option 2 </option\>
1013
+ <option value\="3"\>
1014
+ Option 3 </option\>
1015
+ <option value\="4"\>
1016
+ Option 4 </option\>
1017
+ <option value\="5"\>
1018
+ Option 5 </option\>
1019
+ </IressSelect\>
1020
+
1021
+ ```
1022
+
1023
+ #### Props
1024
+
1025
+ | Name | Description | Default | Control |
1026
+ | --- | --- | --- | --- |
1027
+ | children |
1028
+ The `option` and `optgroup` elements to render within the select.
1029
+
1030
+ union
1031
+
1032
+
1033
+
1034
+ | \- | \- |
1035
+ | defaultValue |
1036
+
1037
+ Value of selected option for uncontrolled select.
1038
+
1039
+ T
1040
+
1041
+
1042
+
1043
+ | \- | Set object |
1044
+ | name |
1045
+
1046
+ Identifier for select.
1047
+
1048
+ string
1049
+
1050
+
1051
+
1052
+ | \- | Set string |
1053
+ | onChange |
1054
+
1055
+ Handles the onChange event of the select input. If you pass in a non-string value, you can access it using the second parameter of the function.
1056
+
1057
+ (e: ChangeEvent<HTMLSelectElement>, value?: T) => void
1058
+
1059
+ | \- | \- |
1060
+ | placeholder |
1061
+
1062
+ Adds an `option` as the first element with the placeholder text and no value.
1063
+
1064
+ string
1065
+
1066
+
1067
+
1068
+ | \- | Set string |
1069
+ | readOnly |
1070
+
1071
+ If `true`, the user cannot modify the value.
1072
+
1073
+ TReadonly
1074
+
1075
+
1076
+
1077
+ | \- |
1078
+
1079
+ true
1080
+
1081
+ |
1082
+ | required |
1083
+
1084
+ Mark the select as a required field.
1085
+
1086
+ boolean
1087
+
1088
+
1089
+
1090
+ | \- | Set boolean |
1091
+ | value |
1092
+
1093
+ Value of selected option for controlled select.
1094
+
1095
+ T
1096
+
1097
+
1098
+
1099
+ | \- |
1100
+
1101
+ "2"
1102
+
1103
+ |
1104
+ | width |
1105
+
1106
+ The width of the select.
1107
+
1108
+ intersection\['width'\]
1109
+
1110
+ | \- | Set object |