@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.
- package/generated/docs/components_components-alert-docs.md +1054 -0
- package/generated/docs/components_components-autocomplete-docs.md +3304 -0
- package/generated/docs/components_components-autocomplete-recipes-docs.md +98 -0
- package/generated/docs/components_components-badge-docs.md +312 -0
- package/generated/docs/components_components-button-docs.md +2339 -0
- package/generated/docs/components_components-buttongroup-docs.md +980 -0
- package/generated/docs/components_components-card-docs.md +1970 -0
- package/generated/docs/components_components-checkbox-docs.md +1083 -0
- package/generated/docs/components_components-checkboxgroup-docs.md +1597 -0
- package/generated/docs/components_components-checkboxgroup-recipes-docs.md +209 -0
- package/generated/docs/components_components-col-docs.md +755 -0
- package/generated/docs/components_components-container-docs.md +172 -0
- package/generated/docs/components_components-divider-docs.md +235 -0
- package/generated/docs/components_components-expander-docs.md +428 -0
- package/generated/docs/components_components-field-docs.md +3345 -0
- package/generated/docs/components_components-filter-docs.md +4091 -0
- package/generated/docs/components_components-hide-docs.md +450 -0
- package/generated/docs/components_components-icon-docs.md +1017 -0
- package/generated/docs/components_components-image-docs.md +168 -0
- package/generated/docs/components_components-inline-docs.md +1962 -0
- package/generated/docs/components_components-input-docs.md +1388 -0
- package/generated/docs/components_components-input-recipes-docs.md +349 -0
- package/generated/docs/components_components-inputcurrency-docs.md +636 -0
- package/generated/docs/components_components-inputcurrency-recipes-docs.md +208 -0
- package/generated/docs/components_components-introduction-docs.md +448 -0
- package/generated/docs/components_components-label-docs.md +229 -0
- package/generated/docs/components_components-link-docs.md +454 -0
- package/generated/docs/components_components-menu-docs.md +2219 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +1455 -0
- package/generated/docs/components_components-modal-docs.md +2002 -0
- package/generated/docs/components_components-panel-docs.md +342 -0
- package/generated/docs/components_components-placeholder-docs.md +98 -0
- package/generated/docs/components_components-popover-docs.md +1631 -0
- package/generated/docs/components_components-popover-recipes-docs.md +537 -0
- package/generated/docs/components_components-progress-docs.md +128 -0
- package/generated/docs/components_components-provider-docs.md +123 -0
- package/generated/docs/components_components-radio-docs.md +499 -0
- package/generated/docs/components_components-radiogroup-docs.md +1573 -0
- package/generated/docs/components_components-readonly-docs.md +277 -0
- package/generated/docs/components_components-richselect-docs.md +6101 -0
- package/generated/docs/components_components-row-docs.md +2172 -0
- package/generated/docs/components_components-select-docs.md +1110 -0
- package/generated/docs/components_components-skeleton-docs.md +467 -0
- package/generated/docs/components_components-skeleton-recipes-docs.md +110 -0
- package/generated/docs/components_components-skiplink-docs.md +220 -0
- package/generated/docs/components_components-slideout-docs.md +1910 -0
- package/generated/docs/components_components-slider-docs.md +1284 -0
- package/generated/docs/components_components-spinner-docs.md +90 -0
- package/generated/docs/components_components-stack-docs.md +730 -0
- package/generated/docs/components_components-table-docs.md +4038 -0
- package/generated/docs/components_components-tabset-docs.md +955 -0
- package/generated/docs/components_components-tabset-tab-docs.md +342 -0
- package/generated/docs/components_components-tag-docs.md +410 -0
- package/generated/docs/components_components-text-docs.md +593 -0
- package/generated/docs/components_components-toaster-docs.md +451 -0
- package/generated/docs/components_components-toggle-docs.md +513 -0
- package/generated/docs/components_components-tooltip-docs.md +564 -0
- package/generated/docs/components_components-validationmessage-docs.md +608 -0
- package/generated/docs/components_contact-us-docs.md +9 -0
- package/generated/docs/components_foundations-accessibility-docs.md +33 -0
- package/generated/docs/components_foundations-consistency-docs.md +44 -0
- package/generated/docs/components_foundations-content-docs.md +18 -0
- package/generated/docs/components_foundations-introduction-docs.md +17 -0
- package/generated/docs/components_foundations-principles-docs.md +60 -0
- package/generated/docs/components_foundations-responsive-layout-docs.md +2692 -0
- package/generated/docs/components_foundations-user-experience-docs.md +53 -0
- package/generated/docs/components_foundations-visual-design-docs.md +39 -0
- package/generated/docs/components_foundations-z-index-stacking-docs.md +288 -0
- package/generated/docs/components_frequently-asked-questions-docs.md +44 -0
- package/generated/docs/components_get-started-develop-docs.md +47 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +85 -0
- package/generated/docs/components_patterns-form-docs.md +2469 -0
- package/generated/docs/components_patterns-form-recipes-docs.md +1597 -0
- package/generated/docs/components_patterns-introduction-docs.md +31 -0
- package/generated/docs/components_patterns-loading-docs.md +1908 -0
- package/generated/docs/components_patterns-shadow-docs.md +195 -0
- package/generated/docs/components_resources-code-katas-docs.md +25 -0
- package/generated/docs/components_resources-introduction-docs.md +28 -0
- package/generated/docs/components_resources-mcp-server-docs.md +23 -0
- package/generated/docs/components_resources-migration-guides-from-v4-to-v5-docs.md +142 -0
- package/generated/docs/components_styling-props-colour-docs.md +91 -0
- package/generated/docs/components_styling-props-elevation-docs.md +69 -0
- package/generated/docs/components_styling-props-radius-docs.md +63 -0
- package/generated/docs/components_styling-props-reference-docs.md +160 -0
- package/generated/docs/components_styling-props-screen-readers-docs.md +66 -0
- package/generated/docs/components_styling-props-sizing-docs.md +217 -0
- package/generated/docs/components_styling-props-spacing-docs.md +545 -0
- package/generated/docs/components_styling-props-typography-docs.md +66 -0
- package/generated/docs/components_versions-docs.md +14 -0
- package/generated/docs/guidelines.md +3083 -0
- package/generated/docs/introduction-docs.md +37 -0
- package/generated/docs/tokens_colour-docs.md +479 -0
- package/generated/docs/tokens_elevation-docs.md +39 -0
- package/generated/docs/tokens_introduction-docs.md +150 -0
- package/generated/docs/tokens_radius-docs.md +67 -0
- package/generated/docs/tokens_spacing-docs.md +87 -0
- package/generated/docs/tokens_typography-docs.md +305 -0
- package/package.json +2 -2
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
Tab
|
|
2
|
+
===
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
A tab is an interactive element that controls the display of other content, usually a panel
|
|
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-tabset-tab--inactive)
|
|
18
|
+
|
|
19
|
+
Tab
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<IressTab label\="Tab" />
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Props
|
|
28
|
+
-----
|
|
29
|
+
|
|
30
|
+
| Name | Description | Default | Control |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| active |
|
|
33
|
+
Sets the active styling of the tab.
|
|
34
|
+
|
|
35
|
+
boolean
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
| \- | Set boolean |
|
|
40
|
+
| children |
|
|
41
|
+
|
|
42
|
+
Text to be displayed inside the tab panel.
|
|
43
|
+
|
|
44
|
+
ReactNode
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
| \- | Set object |
|
|
49
|
+
| href |
|
|
50
|
+
|
|
51
|
+
Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
|
|
52
|
+
|
|
53
|
+
**Note:** This prop should be avoided when using `children`.
|
|
54
|
+
|
|
55
|
+
THref
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
| \- | Set object |
|
|
60
|
+
| label\* |
|
|
61
|
+
|
|
62
|
+
The label of this tab.
|
|
63
|
+
|
|
64
|
+
ReactNode
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
| \- |
|
|
69
|
+
|
|
70
|
+
"Tab"
|
|
71
|
+
|
|
72
|
+
|
|
|
73
|
+
| type |
|
|
74
|
+
|
|
75
|
+
|
|
|
76
|
+
|
|
77
|
+
'button'
|
|
78
|
+
|
|
79
|
+
| Set object |
|
|
80
|
+
| value |
|
|
81
|
+
|
|
82
|
+
You can provide your own value to allow you to control its active state when used in `IressTabSet`.
|
|
83
|
+
|
|
84
|
+
FormControlValue
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
| \- | Set object |
|
|
89
|
+
|
|
90
|
+
Examples
|
|
91
|
+
--------
|
|
92
|
+
|
|
93
|
+
### Active
|
|
94
|
+
|
|
95
|
+
The tab can be set to active using the `active` prop.
|
|
96
|
+
|
|
97
|
+
**Note:** If you are using `IressTabSet`, you should use the `selected` prop on the `IressTabSet` to set the active state of its `<IressTab />` children, as the `active` prop will be ignored.
|
|
98
|
+
|
|
99
|
+
[](./iframe.html?id=components-tabset-tab--active)
|
|
100
|
+
|
|
101
|
+
Tab
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
<IressTab
|
|
106
|
+
active
|
|
107
|
+
label\="Tab"
|
|
108
|
+
/>
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### Props
|
|
113
|
+
|
|
114
|
+
| Name | Description | Default | Control |
|
|
115
|
+
| --- | --- | --- | --- |
|
|
116
|
+
| active |
|
|
117
|
+
Sets the active styling of the tab.
|
|
118
|
+
|
|
119
|
+
boolean
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
| \- | FalseTrue |
|
|
124
|
+
| children |
|
|
125
|
+
|
|
126
|
+
Text to be displayed inside the tab panel.
|
|
127
|
+
|
|
128
|
+
ReactNode
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
| \- | Set object |
|
|
133
|
+
| href |
|
|
134
|
+
|
|
135
|
+
Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
|
|
136
|
+
|
|
137
|
+
**Note:** This prop should be avoided when using `children`.
|
|
138
|
+
|
|
139
|
+
THref
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
| \- | Set object |
|
|
144
|
+
| label\* |
|
|
145
|
+
|
|
146
|
+
The label of this tab.
|
|
147
|
+
|
|
148
|
+
ReactNode
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
| \- |
|
|
153
|
+
|
|
154
|
+
"Tab"
|
|
155
|
+
|
|
156
|
+
|
|
|
157
|
+
| type |
|
|
158
|
+
|
|
159
|
+
|
|
|
160
|
+
|
|
161
|
+
'button'
|
|
162
|
+
|
|
163
|
+
| Set object |
|
|
164
|
+
| value |
|
|
165
|
+
|
|
166
|
+
You can provide your own value to allow you to control its active state when used in `IressTabSet`.
|
|
167
|
+
|
|
168
|
+
FormControlValue
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
| \- | Set object |
|
|
173
|
+
|
|
174
|
+
### Value
|
|
175
|
+
|
|
176
|
+
A tab can have a unique value set to it, used to determine its active state in a `IressTabSet` component. The value is not visible to end users.
|
|
177
|
+
|
|
178
|
+
[](./iframe.html?id=components-tabset-tab--value)
|
|
179
|
+
|
|
180
|
+
Tab with value
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
<IressTabSet\>
|
|
185
|
+
<IressTab
|
|
186
|
+
label\="Tab with value"
|
|
187
|
+
value\="some-tab-name"
|
|
188
|
+
/>
|
|
189
|
+
</IressTabSet\>
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
#### Props
|
|
194
|
+
|
|
195
|
+
| Name | Description | Default | Control |
|
|
196
|
+
| --- | --- | --- | --- |
|
|
197
|
+
| active |
|
|
198
|
+
Sets the active styling of the tab.
|
|
199
|
+
|
|
200
|
+
boolean
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
| \- | Set boolean |
|
|
205
|
+
| children |
|
|
206
|
+
|
|
207
|
+
Text to be displayed inside the tab panel.
|
|
208
|
+
|
|
209
|
+
ReactNode
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
| \- | Set object |
|
|
214
|
+
| href |
|
|
215
|
+
|
|
216
|
+
Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
|
|
217
|
+
|
|
218
|
+
**Note:** This prop should be avoided when using `children`.
|
|
219
|
+
|
|
220
|
+
THref
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
| \- | Set object |
|
|
225
|
+
| label\* |
|
|
226
|
+
|
|
227
|
+
The label of this tab.
|
|
228
|
+
|
|
229
|
+
ReactNode
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
| \- |
|
|
234
|
+
|
|
235
|
+
"Tab with value"
|
|
236
|
+
|
|
237
|
+
|
|
|
238
|
+
| type |
|
|
239
|
+
|
|
240
|
+
|
|
|
241
|
+
|
|
242
|
+
'button'
|
|
243
|
+
|
|
244
|
+
| Set object |
|
|
245
|
+
| value |
|
|
246
|
+
|
|
247
|
+
You can provide your own value to allow you to control its active state when used in `IressTabSet`.
|
|
248
|
+
|
|
249
|
+
FormControlValue
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
| \- |
|
|
254
|
+
|
|
255
|
+
"some-tab-name"
|
|
256
|
+
|
|
257
|
+
|
|
|
258
|
+
|
|
259
|
+
### Panel
|
|
260
|
+
|
|
261
|
+
A tab can set its `children` when used inside an `IressTabSet` component, and it will render as its panel. If the tab is not used inside an `IressTabSet` component, `children` will not render.
|
|
262
|
+
|
|
263
|
+
[](./iframe.html?id=components-tabset-tab--panel)
|
|
264
|
+
|
|
265
|
+
Tab
|
|
266
|
+
|
|
267
|
+
Some content for this tab
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
<IressTabSet\>
|
|
272
|
+
<IressTab label\="Tab"\>
|
|
273
|
+
Some content for this tab </IressTab\>
|
|
274
|
+
</IressTabSet\>
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
#### Props
|
|
279
|
+
|
|
280
|
+
| Name | Description | Default | Control |
|
|
281
|
+
| --- | --- | --- | --- |
|
|
282
|
+
| active |
|
|
283
|
+
Sets the active styling of the tab.
|
|
284
|
+
|
|
285
|
+
boolean
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
| \- | Set boolean |
|
|
290
|
+
| children |
|
|
291
|
+
|
|
292
|
+
Text to be displayed inside the tab panel.
|
|
293
|
+
|
|
294
|
+
ReactNode
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
| \- |
|
|
299
|
+
|
|
300
|
+
"Some content for this tab"
|
|
301
|
+
|
|
302
|
+
|
|
|
303
|
+
| href |
|
|
304
|
+
|
|
305
|
+
Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
|
|
306
|
+
|
|
307
|
+
**Note:** This prop should be avoided when using `children`.
|
|
308
|
+
|
|
309
|
+
THref
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
| \- | Set object |
|
|
314
|
+
| label\* |
|
|
315
|
+
|
|
316
|
+
The label of this tab.
|
|
317
|
+
|
|
318
|
+
ReactNode
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
| \- |
|
|
323
|
+
|
|
324
|
+
"Tab"
|
|
325
|
+
|
|
326
|
+
|
|
|
327
|
+
| type |
|
|
328
|
+
|
|
329
|
+
|
|
|
330
|
+
|
|
331
|
+
'button'
|
|
332
|
+
|
|
333
|
+
| Set object |
|
|
334
|
+
| value |
|
|
335
|
+
|
|
336
|
+
You can provide your own value to allow you to control its active state when used in `IressTabSet`.
|
|
337
|
+
|
|
338
|
+
FormControlValue
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
| \- | Set object |
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
Tag
|
|
2
|
+
===
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
Tags represent individual units in a group of selected items.
|
|
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-tag--tag)
|
|
18
|
+
|
|
19
|
+
Tag
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<IressTag\>
|
|
24
|
+
Tag
|
|
25
|
+
</IressTag\>
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Props
|
|
30
|
+
-----
|
|
31
|
+
|
|
32
|
+
| Name | Description | Default | Control |
|
|
33
|
+
| --- | --- | --- | --- |
|
|
34
|
+
| children |
|
|
35
|
+
Contents of the tag.
|
|
36
|
+
|
|
37
|
+
ReactNode
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
| \- |
|
|
42
|
+
|
|
43
|
+
"Tag"
|
|
44
|
+
|
|
45
|
+
|
|
|
46
|
+
| deleteButton |
|
|
47
|
+
|
|
48
|
+
You can completely replace the delete button to provide your own functionality. When this is provided, `deleteButtonText` will not be used and `onDelete` and `onDeleteButtonBlur` will not be called.
|
|
49
|
+
|
|
50
|
+
ReactNode
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
| \- | Set object |
|
|
55
|
+
| deleteButtonText |
|
|
56
|
+
|
|
57
|
+
Screen reader text for delete button
|
|
58
|
+
|
|
59
|
+
string
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
|
64
|
+
|
|
65
|
+
'Delete'
|
|
66
|
+
|
|
67
|
+
| Set string |
|
|
68
|
+
| onDelete |
|
|
69
|
+
|
|
70
|
+
Callback triggered when the tag is deleted
|
|
71
|
+
|
|
72
|
+
(children: string, e: SyntheticEvent<HTMLButtonElement>) => void
|
|
73
|
+
|
|
74
|
+
| \- | \- |
|
|
75
|
+
| onDeleteButtonBlur |
|
|
76
|
+
|
|
77
|
+
Callback triggered when the close button is blurred
|
|
78
|
+
|
|
79
|
+
(e: FocusEvent<HTMLButtonElement>) => void
|
|
80
|
+
|
|
81
|
+
| \- | \- |
|
|
82
|
+
|
|
83
|
+
Usage
|
|
84
|
+
-----
|
|
85
|
+
|
|
86
|
+
### Deleting tags
|
|
87
|
+
|
|
88
|
+
The delete button will not automatically remove the tag from the screen. Instead it will trigger the `onDelete` event. Use this event within your app to handle the display of tags.
|
|
89
|
+
|
|
90
|
+
The text a screen reader will announce defaults to "Delete" but can be changed using the `deleteButtonText` prop.
|
|
91
|
+
|
|
92
|
+
[](./iframe.html?id=components-tag--deleting-tags)
|
|
93
|
+
|
|
94
|
+
Tag 1Tag 2Tag 3
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
export const TagDeletion \= (args: IressTagProps) \=> {
|
|
99
|
+
const \[tags, setTags\] \= useState(\['Tag 1', 'Tag 2', 'Tag 3'\]);
|
|
100
|
+
const handleAdd: IressButtonProps\['onClick'\] \= () \=> {
|
|
101
|
+
setTags(\[...tags, \`Tag ${tags.length + 1}\`\]);
|
|
102
|
+
};
|
|
103
|
+
const handleDelete: IressTagProps\['onDelete'\] \= (tag) \=> {
|
|
104
|
+
setTags((existingTags) \=>
|
|
105
|
+
existingTags.filter((existingTag) \=> existingTag !== tag),
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
return (
|
|
109
|
+
<IressInline gap\="sm" verticalAlign\="middle"\>
|
|
110
|
+
{tags.map((tag) \=> (
|
|
111
|
+
<IressTag
|
|
112
|
+
{...args}
|
|
113
|
+
key\={tag}
|
|
114
|
+
deleteButtonText\={args.deleteButtonText ?? \`Delete ${tag}\`}
|
|
115
|
+
onDelete\={handleDelete}
|
|
116
|
+
\>
|
|
117
|
+
{tag}
|
|
118
|
+
</IressTag\>
|
|
119
|
+
))}
|
|
120
|
+
<IressButton onClick\={handleAdd}\>
|
|
121
|
+
<IressIcon name\="plus" />
|
|
122
|
+
</IressButton\>
|
|
123
|
+
</IressInline\>
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### Props
|
|
130
|
+
|
|
131
|
+
| Name | Description | Default | Control |
|
|
132
|
+
| --- | --- | --- | --- |
|
|
133
|
+
| children |
|
|
134
|
+
Contents of the tag.
|
|
135
|
+
|
|
136
|
+
ReactNode
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
| \- | Set object |
|
|
141
|
+
| deleteButton |
|
|
142
|
+
|
|
143
|
+
You can completely replace the delete button to provide your own functionality. When this is provided, `deleteButtonText` will not be used and `onDelete` and `onDeleteButtonBlur` will not be called.
|
|
144
|
+
|
|
145
|
+
ReactNode
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
| \- | Set object |
|
|
150
|
+
| deleteButtonText |
|
|
151
|
+
|
|
152
|
+
Screen reader text for delete button
|
|
153
|
+
|
|
154
|
+
string
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
|
159
|
+
|
|
160
|
+
'Delete'
|
|
161
|
+
|
|
162
|
+
| Set string |
|
|
163
|
+
| onDelete |
|
|
164
|
+
|
|
165
|
+
Callback triggered when the tag is deleted
|
|
166
|
+
|
|
167
|
+
(children: string, e: SyntheticEvent<HTMLButtonElement>) => void
|
|
168
|
+
|
|
169
|
+
| \- | \- |
|
|
170
|
+
| onDeleteButtonBlur |
|
|
171
|
+
|
|
172
|
+
Callback triggered when the close button is blurred
|
|
173
|
+
|
|
174
|
+
(e: FocusEvent<HTMLButtonElement>) => void
|
|
175
|
+
|
|
176
|
+
| \- | \- |
|
|
177
|
+
|
|
178
|
+
### Custom button
|
|
179
|
+
|
|
180
|
+
You can completely override the delete button by passing a custom component to the `deleteButton` prop.
|
|
181
|
+
|
|
182
|
+
[](./iframe.html?id=components-tag--custom-button)
|
|
183
|
+
|
|
184
|
+
Tag
|
|
185
|
+
|
|
186
|
+
Some actions go in here
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
<IressTag deleteButton\={<IressPopover activator\={<IressButton mode\="tertiary"\><IressIcon name\="chevron-circle-down" screenreaderText\="Actions"/></IressButton\>} align\="bottom-start"\><IressPanel\>Some actions go in here</IressPanel\></IressPopover\>}\>
|
|
191
|
+
Tag
|
|
192
|
+
</IressTag\>
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
#### Props
|
|
197
|
+
|
|
198
|
+
| Name | Description | Default | Control |
|
|
199
|
+
| --- | --- | --- | --- |
|
|
200
|
+
| children |
|
|
201
|
+
Contents of the tag.
|
|
202
|
+
|
|
203
|
+
ReactNode
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
| \- |
|
|
208
|
+
|
|
209
|
+
"Tag"
|
|
210
|
+
|
|
211
|
+
|
|
|
212
|
+
| deleteButton |
|
|
213
|
+
|
|
214
|
+
You can completely replace the delete button to provide your own functionality. When this is provided, `deleteButtonText` will not be used and `onDelete` and `onDeleteButtonBlur` will not be called.
|
|
215
|
+
|
|
216
|
+
ReactNode
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
| \- |
|
|
221
|
+
|
|
222
|
+
RAW
|
|
223
|
+
|
|
224
|
+
deleteButton :
|
|
225
|
+
|
|
226
|
+
{
|
|
227
|
+
|
|
228
|
+
* $$typeof : Symbol(react.transitional.element)
|
|
229
|
+
* type :
|
|
230
|
+
|
|
231
|
+
{...} 3 keys
|
|
232
|
+
|
|
233
|
+
* key : null
|
|
234
|
+
* props :
|
|
235
|
+
|
|
236
|
+
{...} 3 keys
|
|
237
|
+
|
|
238
|
+
* \_owner : null
|
|
239
|
+
* \_store :
|
|
240
|
+
|
|
241
|
+
{...} 0 keys
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
|
253
|
+
| deleteButtonText |
|
|
254
|
+
|
|
255
|
+
Screen reader text for delete button
|
|
256
|
+
|
|
257
|
+
string
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
|
262
|
+
|
|
263
|
+
'Delete'
|
|
264
|
+
|
|
265
|
+
| Set string |
|
|
266
|
+
| onDelete |
|
|
267
|
+
|
|
268
|
+
Callback triggered when the tag is deleted
|
|
269
|
+
|
|
270
|
+
(children: string, e: SyntheticEvent<HTMLButtonElement>) => void
|
|
271
|
+
|
|
272
|
+
| \- | \- |
|
|
273
|
+
| onDeleteButtonBlur |
|
|
274
|
+
|
|
275
|
+
Callback triggered when the close button is blurred
|
|
276
|
+
|
|
277
|
+
(e: FocusEvent<HTMLButtonElement>) => void
|
|
278
|
+
|
|
279
|
+
| \- | \- |
|
|
280
|
+
|
|
281
|
+
IressTagInput
|
|
282
|
+
-------------
|
|
283
|
+
|
|
284
|
+
`IressTagInput` allows you to manage multiple tags, and is often used for managing email addresses, domains or other simple metadata that does not have to be selected from a list.
|
|
285
|
+
|
|
286
|
+
If you need to manage tags that are selected from a existing list, use `IressRichSelect` with the `multiple` prop.
|
|
287
|
+
|
|
288
|
+
[](./iframe.html?id=components-tag-taginput--tag-input)
|
|
289
|
+
|
|
290
|
+
Tag
|
|
291
|
+
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
<IressTagInput
|
|
295
|
+
defaultValue\={\[
|
|
296
|
+
'Tag'
|
|
297
|
+
\]}
|
|
298
|
+
placeholder\="Type and hit enter to add a tag"
|
|
299
|
+
tagLimit\={999}
|
|
300
|
+
/>
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
#### Props
|
|
305
|
+
|
|
306
|
+
| Name | Description | Default | Control |
|
|
307
|
+
| --- | --- | --- | --- |
|
|
308
|
+
| defaultValue |
|
|
309
|
+
Tags to display (uncontrolled)
|
|
310
|
+
|
|
311
|
+
string\[\]
|
|
312
|
+
|
|
313
|
+
| \- |
|
|
314
|
+
|
|
315
|
+
RAW
|
|
316
|
+
|
|
317
|
+
* defaultValue :
|
|
318
|
+
|
|
319
|
+
\[
|
|
320
|
+
|
|
321
|
+
* 0 : "Tag"
|
|
322
|
+
|
|
323
|
+
\]
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
|
329
|
+
| onChange |
|
|
330
|
+
|
|
331
|
+
Emitted when the value changes.
|
|
332
|
+
|
|
333
|
+
(e?: SyntheticEvent<InputBaseElement>, value?: string\[\]) => void
|
|
334
|
+
|
|
335
|
+
| \- | \- |
|
|
336
|
+
| onExistingTag |
|
|
337
|
+
|
|
338
|
+
Emitted when the user attempts to add a tag that already exists.
|
|
339
|
+
|
|
340
|
+
(tag: string) => void
|
|
341
|
+
|
|
342
|
+
| \- | \- |
|
|
343
|
+
| onTagDelete |
|
|
344
|
+
|
|
345
|
+
Emitted when a tag is deleted
|
|
346
|
+
|
|
347
|
+
IressTagProps\['onDelete'\]
|
|
348
|
+
|
|
349
|
+
| \- | Set object |
|
|
350
|
+
| onTagDeleteAll |
|
|
351
|
+
|
|
352
|
+
Emitted when the combined tag delete button is clicked
|
|
353
|
+
|
|
354
|
+
IressTagProps\['onDelete'\]
|
|
355
|
+
|
|
356
|
+
| \- | Set object |
|
|
357
|
+
| onTagDeleteButtonBlur |
|
|
358
|
+
|
|
359
|
+
Emitted when a tag's delete button is blurred
|
|
360
|
+
|
|
361
|
+
IressTagProps\['onDeleteButtonBlur'\]
|
|
362
|
+
|
|
363
|
+
| \- | Set object |
|
|
364
|
+
| placeholder |
|
|
365
|
+
|
|
366
|
+
string
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
| \- | Type and hit enter to add a tag |
|
|
371
|
+
| selectedOptionsTagText |
|
|
372
|
+
|
|
373
|
+
Text displayed next to tag count in tag when tag limit is exceeded
|
|
374
|
+
|
|
375
|
+
string
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
|
380
|
+
|
|
381
|
+
'selected'
|
|
382
|
+
|
|
383
|
+
| Set string |
|
|
384
|
+
| tagLimit |
|
|
385
|
+
|
|
386
|
+
Limit of tags to display before shortening to `selectedOptionsTagText`
|
|
387
|
+
|
|
388
|
+
number
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
|
393
|
+
|
|
394
|
+
5
|
|
395
|
+
|
|
396
|
+
| |
|
|
397
|
+
| value |
|
|
398
|
+
|
|
399
|
+
Tags to display (controlled)
|
|
400
|
+
|
|
401
|
+
string\[\]
|
|
402
|
+
|
|
403
|
+
| \- | Set object |
|
|
404
|
+
| width |
|
|
405
|
+
|
|
406
|
+
|
|
|
407
|
+
|
|
408
|
+
'100perc'
|
|
409
|
+
|
|
410
|
+
| Set object |
|