@iress-oss/ids-mcp-server 5.14.2 → 5.20.1
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 +492 -0
- package/generated/docs/components_components-autocomplete-docs.md +3485 -0
- package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +32 -14
- package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
- package/generated/docs/components_components-button-docs.md +2078 -0
- package/generated/docs/components_components-button-recipes-docs.md +37 -0
- package/generated/docs/components_components-buttongroup-docs.md +1045 -0
- package/generated/docs/components_components-card-docs.md +2276 -0
- package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +131 -14
- package/generated/docs/components_components-checkbox-docs.md +1054 -0
- package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1000 -81
- package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +101 -11
- package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
- package/generated/docs/components_components-combobox-docs.md +3767 -0
- package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
- package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
- package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +264 -33
- package/generated/docs/{components-field-docs.md → components_components-field-docs.md} +814 -120
- package/generated/docs/components_components-filter-docs.md +4080 -0
- package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1488 -358
- package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +174 -64
- package/generated/docs/components_components-hide-docs.md +293 -0
- package/generated/docs/components_components-icon-docs.md +1337 -0
- package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
- package/generated/docs/components_components-input-docs.md +1468 -0
- package/generated/docs/components_components-input-recipes-docs.md +367 -0
- package/generated/docs/components_components-inputcurrency-docs.md +432 -0
- package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +110 -17
- package/generated/docs/components_components-label-docs.md +323 -0
- package/generated/docs/components_components-menu-docs.md +2345 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
- package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1625 -232
- package/generated/docs/components_components-navbar-docs.md +1847 -0
- package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +697 -39
- package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
- package/generated/docs/components_components-placeholder-docs.md +92 -0
- package/generated/docs/components_components-popover-docs.md +1641 -0
- package/generated/docs/{components-popover-recipes-docs.md → components_components-popover-recipes-docs.md} +347 -17
- package/generated/docs/components_components-progress-docs.md +115 -0
- package/generated/docs/components_components-provider-docs.md +114 -0
- package/generated/docs/components_components-radio-docs.md +491 -0
- package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +943 -75
- package/generated/docs/components_components-readonly-docs.md +263 -0
- package/generated/docs/components_components-richselect-docs.md +6497 -0
- package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
- package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
- package/generated/docs/components_components-skeleton-docs.md +480 -0
- package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +50 -10
- package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
- package/generated/docs/components_components-slideout-docs.md +2262 -0
- package/generated/docs/components_components-slider-docs.md +1276 -0
- package/generated/docs/components_components-spinner-docs.md +82 -0
- package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
- package/generated/docs/components_components-table-docs.md +3651 -0
- package/generated/docs/components_components-tabset-docs.md +772 -0
- package/generated/docs/components_components-tabset-tab-docs.md +262 -0
- package/generated/docs/components_components-tag-docs.md +259 -0
- package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
- package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +224 -71
- package/generated/docs/components_components-toaster-toast-docs.md +634 -0
- package/generated/docs/components_components-toggle-docs.md +461 -0
- package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
- package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
- package/generated/docs/components_contact-us-docs.md +12 -0
- package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
- package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
- package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
- package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
- package/generated/docs/components_foundations-introduction-docs.md +15 -0
- package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
- package/generated/docs/components_foundations-typography-docs.md +608 -0
- package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
- package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
- package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
- package/generated/docs/components_get-started-develop-docs.md +84 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +15 -0
- package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +711 -143
- package/generated/docs/components_resources-changelog-docs.md +4 -0
- package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
- package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
- package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
- package/generated/docs/guidelines.md +484 -200
- package/generated/docs/introduction-docs.md +19 -30
- package/package.json +41 -45
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- package/generated/docs/components-button-docs.md +0 -362
- package/generated/docs/components-button-recipes-docs.md +0 -76
- package/generated/docs/components-buttongroup-docs.md +0 -310
- package/generated/docs/components-card-docs.md +0 -494
- package/generated/docs/components-checkbox-docs.md +0 -193
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-hide-docs.md +0 -265
- package/generated/docs/components-icon-docs.md +0 -553
- package/generated/docs/components-input-docs.md +0 -335
- package/generated/docs/components-input-recipes-docs.md +0 -140
- package/generated/docs/components-inputcurrency-docs.md +0 -157
- package/generated/docs/components-label-docs.md +0 -135
- package/generated/docs/components-menu-docs.md +0 -704
- package/generated/docs/components-menu-menuitem-docs.md +0 -193
- package/generated/docs/components-navbar-docs.md +0 -291
- package/generated/docs/components-placeholder-docs.md +0 -27
- package/generated/docs/components-popover-docs.md +0 -464
- package/generated/docs/components-progress-docs.md +0 -104
- package/generated/docs/components-radio-docs.md +0 -107
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-skeleton-docs.md +0 -214
- package/generated/docs/components-slideout-docs.md +0 -538
- package/generated/docs/components-slider-docs.md +0 -346
- package/generated/docs/components-spinner-docs.md +0 -59
- package/generated/docs/components-table-ag-grid-docs.md +0 -2666
- package/generated/docs/components-table-docs.md +0 -1305
- package/generated/docs/components-tabset-docs.md +0 -341
- package/generated/docs/components-tabset-tab-docs.md +0 -86
- package/generated/docs/components-tag-docs.md +0 -115
- package/generated/docs/components-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- package/generated/docs/contact-us-docs.md +0 -27
- package/generated/docs/extensions-editor-docs.md +0 -288
- package/generated/docs/extensions-editor-recipes-docs.md +0 -39
- package/generated/docs/foundations-introduction-docs.md +0 -17
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/get-started-develop-docs.md +0 -48
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/resources-changelog-docs.md +0 -6
- package/generated/docs/themes-available-themes-docs.md +0 -66
- package/generated/docs/themes-introduction-docs.md +0 -121
- package/generated/docs/themes-tokens-docs.md +0 -1200
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -0,0 +1,1337 @@
|
|
|
1
|
+
Icon
|
|
2
|
+
====
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
Icons enhance experiences by visually communicating meaning, actions, status, and feedback.
|
|
8
|
+
|
|
9
|
+
[](./iframe.html?id=components-icon--default)
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
<IressIcon name\="home" />
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Props
|
|
18
|
+
-----
|
|
19
|
+
|
|
20
|
+
| Name | Description | Default | Control |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| fixedWidth |
|
|
23
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
24
|
+
|
|
25
|
+
boolean
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
| \- | Set boolean |
|
|
30
|
+
| flip |
|
|
31
|
+
|
|
32
|
+
Flip the icon horizontally or vertically
|
|
33
|
+
|
|
34
|
+
union
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
| \- | Set object |
|
|
39
|
+
| mode |
|
|
40
|
+
|
|
41
|
+
Allows control of the icon color
|
|
42
|
+
|
|
43
|
+
union
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
| \- | Set object |
|
|
48
|
+
| name\* |
|
|
49
|
+
|
|
50
|
+
The name of the icon
|
|
51
|
+
|
|
52
|
+
string
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
| \- | home |
|
|
57
|
+
| rotate |
|
|
58
|
+
|
|
59
|
+
Amount of degrees to rotate the icon
|
|
60
|
+
|
|
61
|
+
union
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
| \- | Set object |
|
|
66
|
+
| screenreaderText |
|
|
67
|
+
|
|
68
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
69
|
+
|
|
70
|
+
string
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
| \- | Set string |
|
|
75
|
+
| set |
|
|
76
|
+
|
|
77
|
+
The icon set to be used
|
|
78
|
+
|
|
79
|
+
union
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
|
84
|
+
|
|
85
|
+
'fal'
|
|
86
|
+
|
|
87
|
+
| Set object |
|
|
88
|
+
| size |
|
|
89
|
+
|
|
90
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
91
|
+
|
|
92
|
+
union
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
| \- | Set object |
|
|
97
|
+
| spin |
|
|
98
|
+
|
|
99
|
+
Accepts a numeric value for speed for one rotation.
|
|
100
|
+
|
|
101
|
+
union
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
| \- | Set object |
|
|
106
|
+
|
|
107
|
+
Installation
|
|
108
|
+
------------
|
|
109
|
+
|
|
110
|
+
If you are planning to include the `<IressIcon />` component in your application, you need to include the Font Awesome CSS.
|
|
111
|
+
|
|
112
|
+
The easiest way to import the Font Awesome CSS is to use the `combined.css` file and add it to the `<head />` if your application. This file includes both the [Pro Light](https://fontawesome.com/v5/search?o=r&s=light) and [Brand](https://fontawesome.com/v5/search?o=r&f=brands) icon sets.
|
|
113
|
+
|
|
114
|
+
Microfrontends
|
|
115
|
+
--------------
|
|
116
|
+
|
|
117
|
+
If you are using a Microfrontend, you need to include the Font Awesome CSS in the parent application as well as the Microfrontend. This is because `@font-face` declarations are not supported inside the Shadow DOM.
|
|
118
|
+
|
|
119
|
+
<link
|
|
120
|
+
href\="https://cdn.iress.com/icons/5.15.4/css/combined.min.css"
|
|
121
|
+
rel\="stylesheet"
|
|
122
|
+
/>
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Supported library sets and names
|
|
127
|
+
--------------------------------
|
|
128
|
+
|
|
129
|
+
`IressIcon` currently supports Font Awesome (V5) [Light](https://fontawesome.com/v5/search?o=r&s=light) and [Brand](https://fontawesome.com/v5/search?o=r&f=brands) sets. The library sets are controlled by the `set` prop and it defaults to the Light set (`fal`).
|
|
130
|
+
|
|
131
|
+
The `name` prop controls which icon is shown, and needs to match the icon name exactly as displayed on the [Font Awesome website](https://fontawesome.com/v5/search). Icon names should be lower case, and separated by hyphens where required; for example `home-alt` or `check-circle.` Icon names should not include the `fa-` prefix.
|
|
132
|
+
|
|
133
|
+
Behaviour
|
|
134
|
+
---------
|
|
135
|
+
|
|
136
|
+
### Screen Reader Text
|
|
137
|
+
|
|
138
|
+
By default icons are hidden from screen readers. The `screenreaderText` prop makes icons visible to screen readers users, providing a description of the icon.
|
|
139
|
+
|
|
140
|
+
If you use an icon to improve the visual appeal of content, for example by replacing the default list icons with tick marks when listing product features, you don't need to add any screen reader text.
|
|
141
|
+
|
|
142
|
+
If you use an icon to convey meaning, for example using an icon as the only content inside a button, you do need to supply a value for the `screenreaderText`; if you don't the button meaning will be completely lost for screen reader users.
|
|
143
|
+
|
|
144
|
+
[](./iframe.html?id=components-icon--screen-reader-text)
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
<IressIcon
|
|
149
|
+
name\="home"
|
|
150
|
+
screenreaderText\="Home"
|
|
151
|
+
/>
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
#### Props
|
|
156
|
+
|
|
157
|
+
| Name | Description | Default | Control |
|
|
158
|
+
| --- | --- | --- | --- |
|
|
159
|
+
| fixedWidth |
|
|
160
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
161
|
+
|
|
162
|
+
boolean
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
| \- | Set boolean |
|
|
167
|
+
| flip |
|
|
168
|
+
|
|
169
|
+
Flip the icon horizontally or vertically
|
|
170
|
+
|
|
171
|
+
union
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
| \- | Set object |
|
|
176
|
+
| mode |
|
|
177
|
+
|
|
178
|
+
Allows control of the icon color
|
|
179
|
+
|
|
180
|
+
union
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
| \- | Set object |
|
|
185
|
+
| name\* |
|
|
186
|
+
|
|
187
|
+
The name of the icon
|
|
188
|
+
|
|
189
|
+
string
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
| \- | home |
|
|
194
|
+
| rotate |
|
|
195
|
+
|
|
196
|
+
Amount of degrees to rotate the icon
|
|
197
|
+
|
|
198
|
+
union
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
| \- | Set object |
|
|
203
|
+
| screenreaderText |
|
|
204
|
+
|
|
205
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
206
|
+
|
|
207
|
+
string
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
| \- | Home |
|
|
212
|
+
| set |
|
|
213
|
+
|
|
214
|
+
The icon set to be used
|
|
215
|
+
|
|
216
|
+
union
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
|
221
|
+
|
|
222
|
+
'fal'
|
|
223
|
+
|
|
224
|
+
| Set object |
|
|
225
|
+
| size |
|
|
226
|
+
|
|
227
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
228
|
+
|
|
229
|
+
union
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
| \- | Set object |
|
|
234
|
+
| spin |
|
|
235
|
+
|
|
236
|
+
Accepts a numeric value for speed for one rotation.
|
|
237
|
+
|
|
238
|
+
union
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
| \- | Set object |
|
|
243
|
+
|
|
244
|
+
### Size
|
|
245
|
+
|
|
246
|
+
The `size` prop can be used to control sizing of the icon.
|
|
247
|
+
|
|
248
|
+
[](./iframe.html?id=components-icon--size)
|
|
249
|
+
|
|
250
|
+
xs
|
|
251
|
+
|
|
252
|
+
sm
|
|
253
|
+
|
|
254
|
+
lg
|
|
255
|
+
|
|
256
|
+
2x
|
|
257
|
+
|
|
258
|
+
3x
|
|
259
|
+
|
|
260
|
+
5x
|
|
261
|
+
|
|
262
|
+
7x
|
|
263
|
+
|
|
264
|
+
10x
|
|
265
|
+
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
<IressInline
|
|
269
|
+
gutter\="md"
|
|
270
|
+
verticalAlign\="bottom"
|
|
271
|
+
\>
|
|
272
|
+
<div\>
|
|
273
|
+
<IressIcon
|
|
274
|
+
name\="home"
|
|
275
|
+
size\="xs"
|
|
276
|
+
/>
|
|
277
|
+
<IressText align\="center"\>
|
|
278
|
+
xs </IressText\>
|
|
279
|
+
</div\>
|
|
280
|
+
<div\>
|
|
281
|
+
<IressIcon
|
|
282
|
+
name\="home"
|
|
283
|
+
size\="sm"
|
|
284
|
+
/>
|
|
285
|
+
<IressText align\="center"\>
|
|
286
|
+
sm </IressText\>
|
|
287
|
+
</div\>
|
|
288
|
+
<div\>
|
|
289
|
+
<IressIcon
|
|
290
|
+
name\="home"
|
|
291
|
+
size\="lg"
|
|
292
|
+
/>
|
|
293
|
+
<IressText align\="center"\>
|
|
294
|
+
lg </IressText\>
|
|
295
|
+
</div\>
|
|
296
|
+
<div\>
|
|
297
|
+
<IressIcon
|
|
298
|
+
name\="home"
|
|
299
|
+
size\="2x"
|
|
300
|
+
/>
|
|
301
|
+
<IressText align\="center"\>
|
|
302
|
+
2x </IressText\>
|
|
303
|
+
</div\>
|
|
304
|
+
<div\>
|
|
305
|
+
<IressIcon
|
|
306
|
+
name\="home"
|
|
307
|
+
size\="3x"
|
|
308
|
+
/>
|
|
309
|
+
<IressText align\="center"\>
|
|
310
|
+
3x </IressText\>
|
|
311
|
+
</div\>
|
|
312
|
+
<div\>
|
|
313
|
+
<IressIcon
|
|
314
|
+
name\="home"
|
|
315
|
+
size\="5x"
|
|
316
|
+
/>
|
|
317
|
+
<IressText align\="center"\>
|
|
318
|
+
5x </IressText\>
|
|
319
|
+
</div\>
|
|
320
|
+
<div\>
|
|
321
|
+
<IressIcon
|
|
322
|
+
name\="home"
|
|
323
|
+
size\="7x"
|
|
324
|
+
/>
|
|
325
|
+
<IressText align\="center"\>
|
|
326
|
+
7x </IressText\>
|
|
327
|
+
</div\>
|
|
328
|
+
<div\>
|
|
329
|
+
<IressIcon
|
|
330
|
+
name\="home"
|
|
331
|
+
size\="10x"
|
|
332
|
+
/>
|
|
333
|
+
<IressText align\="center"\>
|
|
334
|
+
10x </IressText\>
|
|
335
|
+
</div\>
|
|
336
|
+
</IressInline\>
|
|
337
|
+
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
#### Props
|
|
341
|
+
|
|
342
|
+
| Name | Description | Default | Control |
|
|
343
|
+
| --- | --- | --- | --- |
|
|
344
|
+
| fixedWidth |
|
|
345
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
346
|
+
|
|
347
|
+
boolean
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
| \- | Set boolean |
|
|
352
|
+
| flip |
|
|
353
|
+
|
|
354
|
+
Flip the icon horizontally or vertically
|
|
355
|
+
|
|
356
|
+
union
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
| \- | Set object |
|
|
361
|
+
| mode |
|
|
362
|
+
|
|
363
|
+
Allows control of the icon color
|
|
364
|
+
|
|
365
|
+
union
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
| \- | Set object |
|
|
370
|
+
| name\* |
|
|
371
|
+
|
|
372
|
+
The name of the icon
|
|
373
|
+
|
|
374
|
+
string
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
| \- | home |
|
|
379
|
+
| rotate |
|
|
380
|
+
|
|
381
|
+
Amount of degrees to rotate the icon
|
|
382
|
+
|
|
383
|
+
union
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
| \- | Set object |
|
|
388
|
+
| screenreaderText |
|
|
389
|
+
|
|
390
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
391
|
+
|
|
392
|
+
string
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
| \- | Set string |
|
|
397
|
+
| set |
|
|
398
|
+
|
|
399
|
+
The icon set to be used
|
|
400
|
+
|
|
401
|
+
union
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
|
406
|
+
|
|
407
|
+
'fal'
|
|
408
|
+
|
|
409
|
+
| Set object |
|
|
410
|
+
| size |
|
|
411
|
+
|
|
412
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
413
|
+
|
|
414
|
+
union
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
| \- | \- |
|
|
419
|
+
| spin |
|
|
420
|
+
|
|
421
|
+
Accepts a numeric value for speed for one rotation.
|
|
422
|
+
|
|
423
|
+
union
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
| \- | Set object |
|
|
428
|
+
|
|
429
|
+
### Mode
|
|
430
|
+
|
|
431
|
+
The `mode` prop can be used to set the colour of the icon to these predefined mode colours: Body, Muted, Primary, Info, Success, Warning, Danger, Positive and Negative.
|
|
432
|
+
|
|
433
|
+
[](./iframe.html?id=components-icon--mode)
|
|
434
|
+
|
|
435
|
+
danger
|
|
436
|
+
|
|
437
|
+
info
|
|
438
|
+
|
|
439
|
+
muted
|
|
440
|
+
|
|
441
|
+
primary
|
|
442
|
+
|
|
443
|
+
success
|
|
444
|
+
|
|
445
|
+
warning
|
|
446
|
+
|
|
447
|
+
positive
|
|
448
|
+
|
|
449
|
+
negative
|
|
450
|
+
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
<IressInline gutter\="md"\>
|
|
454
|
+
<div\>
|
|
455
|
+
<IressIcon
|
|
456
|
+
mode\="danger"
|
|
457
|
+
name\="home"
|
|
458
|
+
size\="5x"
|
|
459
|
+
/>
|
|
460
|
+
<IressText align\="center"\>
|
|
461
|
+
danger </IressText\>
|
|
462
|
+
</div\>
|
|
463
|
+
<div\>
|
|
464
|
+
<IressIcon
|
|
465
|
+
mode\="info"
|
|
466
|
+
name\="home"
|
|
467
|
+
size\="5x"
|
|
468
|
+
/>
|
|
469
|
+
<IressText align\="center"\>
|
|
470
|
+
info </IressText\>
|
|
471
|
+
</div\>
|
|
472
|
+
<div\>
|
|
473
|
+
<IressIcon
|
|
474
|
+
mode\="muted"
|
|
475
|
+
name\="home"
|
|
476
|
+
size\="5x"
|
|
477
|
+
/>
|
|
478
|
+
<IressText align\="center"\>
|
|
479
|
+
muted </IressText\>
|
|
480
|
+
</div\>
|
|
481
|
+
<div\>
|
|
482
|
+
<IressIcon
|
|
483
|
+
mode\="primary"
|
|
484
|
+
name\="home"
|
|
485
|
+
size\="5x"
|
|
486
|
+
/>
|
|
487
|
+
<IressText align\="center"\>
|
|
488
|
+
primary </IressText\>
|
|
489
|
+
</div\>
|
|
490
|
+
<div\>
|
|
491
|
+
<IressIcon
|
|
492
|
+
mode\="success"
|
|
493
|
+
name\="home"
|
|
494
|
+
size\="5x"
|
|
495
|
+
/>
|
|
496
|
+
<IressText align\="center"\>
|
|
497
|
+
success </IressText\>
|
|
498
|
+
</div\>
|
|
499
|
+
<div\>
|
|
500
|
+
<IressIcon
|
|
501
|
+
mode\="warning"
|
|
502
|
+
name\="home"
|
|
503
|
+
size\="5x"
|
|
504
|
+
/>
|
|
505
|
+
<IressText align\="center"\>
|
|
506
|
+
warning </IressText\>
|
|
507
|
+
</div\>
|
|
508
|
+
<div\>
|
|
509
|
+
<IressIcon
|
|
510
|
+
mode\="positive"
|
|
511
|
+
name\="home"
|
|
512
|
+
size\="5x"
|
|
513
|
+
/>
|
|
514
|
+
<IressText align\="center"\>
|
|
515
|
+
positive </IressText\>
|
|
516
|
+
</div\>
|
|
517
|
+
<div\>
|
|
518
|
+
<IressIcon
|
|
519
|
+
mode\="negative"
|
|
520
|
+
name\="home"
|
|
521
|
+
size\="5x"
|
|
522
|
+
/>
|
|
523
|
+
<IressText align\="center"\>
|
|
524
|
+
negative </IressText\>
|
|
525
|
+
</div\>
|
|
526
|
+
</IressInline\>
|
|
527
|
+
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
#### Props
|
|
531
|
+
|
|
532
|
+
| Name | Description | Default | Control |
|
|
533
|
+
| --- | --- | --- | --- |
|
|
534
|
+
| fixedWidth |
|
|
535
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
536
|
+
|
|
537
|
+
boolean
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
| \- | Set boolean |
|
|
542
|
+
| flip |
|
|
543
|
+
|
|
544
|
+
Flip the icon horizontally or vertically
|
|
545
|
+
|
|
546
|
+
union
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
| \- | Set object |
|
|
551
|
+
| mode |
|
|
552
|
+
|
|
553
|
+
Allows control of the icon color
|
|
554
|
+
|
|
555
|
+
union
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
| \- | \- |
|
|
560
|
+
| name\* |
|
|
561
|
+
|
|
562
|
+
The name of the icon
|
|
563
|
+
|
|
564
|
+
string
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
| \- | home |
|
|
569
|
+
| rotate |
|
|
570
|
+
|
|
571
|
+
Amount of degrees to rotate the icon
|
|
572
|
+
|
|
573
|
+
union
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
| \- | Set object |
|
|
578
|
+
| screenreaderText |
|
|
579
|
+
|
|
580
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
581
|
+
|
|
582
|
+
string
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
| \- | Set string |
|
|
587
|
+
| set |
|
|
588
|
+
|
|
589
|
+
The icon set to be used
|
|
590
|
+
|
|
591
|
+
union
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
|
596
|
+
|
|
597
|
+
'fal'
|
|
598
|
+
|
|
599
|
+
| Set object |
|
|
600
|
+
| size |
|
|
601
|
+
|
|
602
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
603
|
+
|
|
604
|
+
union
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
| \- |
|
|
609
|
+
|
|
610
|
+
"5x"
|
|
611
|
+
|
|
612
|
+
|
|
|
613
|
+
| spin |
|
|
614
|
+
|
|
615
|
+
Accepts a numeric value for speed for one rotation.
|
|
616
|
+
|
|
617
|
+
union
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
| \- | Set object |
|
|
622
|
+
|
|
623
|
+
### Flip
|
|
624
|
+
|
|
625
|
+
The `flip` prop can be set to horizontal, vertical or both.
|
|
626
|
+
|
|
627
|
+
[](./iframe.html?id=components-icon--flip)
|
|
628
|
+
|
|
629
|
+
original
|
|
630
|
+
|
|
631
|
+
horizontal
|
|
632
|
+
|
|
633
|
+
vertical
|
|
634
|
+
|
|
635
|
+
both
|
|
636
|
+
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
<IressInline gutter\="md"\>
|
|
640
|
+
<div\>
|
|
641
|
+
<IressIcon
|
|
642
|
+
name\="home"
|
|
643
|
+
size\="5x"
|
|
644
|
+
/>
|
|
645
|
+
<IressText align\="center"\>
|
|
646
|
+
original </IressText\>
|
|
647
|
+
</div\>
|
|
648
|
+
<div\>
|
|
649
|
+
<IressIcon
|
|
650
|
+
flip\="horizontal"
|
|
651
|
+
name\="home"
|
|
652
|
+
size\="5x"
|
|
653
|
+
/>
|
|
654
|
+
<IressText align\="center"\>
|
|
655
|
+
horizontal </IressText\>
|
|
656
|
+
</div\>
|
|
657
|
+
<div\>
|
|
658
|
+
<IressIcon
|
|
659
|
+
flip\="vertical"
|
|
660
|
+
name\="home"
|
|
661
|
+
size\="5x"
|
|
662
|
+
/>
|
|
663
|
+
<IressText align\="center"\>
|
|
664
|
+
vertical </IressText\>
|
|
665
|
+
</div\>
|
|
666
|
+
<div\>
|
|
667
|
+
<IressIcon
|
|
668
|
+
flip\="both"
|
|
669
|
+
name\="home"
|
|
670
|
+
size\="5x"
|
|
671
|
+
/>
|
|
672
|
+
<IressText align\="center"\>
|
|
673
|
+
both </IressText\>
|
|
674
|
+
</div\>
|
|
675
|
+
</IressInline\>
|
|
676
|
+
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
#### Props
|
|
680
|
+
|
|
681
|
+
| Name | Description | Default | Control |
|
|
682
|
+
| --- | --- | --- | --- |
|
|
683
|
+
| fixedWidth |
|
|
684
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
685
|
+
|
|
686
|
+
boolean
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
| \- | Set boolean |
|
|
691
|
+
| flip |
|
|
692
|
+
|
|
693
|
+
Flip the icon horizontally or vertically
|
|
694
|
+
|
|
695
|
+
union
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
| \- | \- |
|
|
700
|
+
| mode |
|
|
701
|
+
|
|
702
|
+
Allows control of the icon color
|
|
703
|
+
|
|
704
|
+
union
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
| \- | Set object |
|
|
709
|
+
| name\* |
|
|
710
|
+
|
|
711
|
+
The name of the icon
|
|
712
|
+
|
|
713
|
+
string
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
| \- | home |
|
|
718
|
+
| rotate |
|
|
719
|
+
|
|
720
|
+
Amount of degrees to rotate the icon
|
|
721
|
+
|
|
722
|
+
union
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
| \- | Set object |
|
|
727
|
+
| screenreaderText |
|
|
728
|
+
|
|
729
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
730
|
+
|
|
731
|
+
string
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
| \- | Set string |
|
|
736
|
+
| set |
|
|
737
|
+
|
|
738
|
+
The icon set to be used
|
|
739
|
+
|
|
740
|
+
union
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
|
745
|
+
|
|
746
|
+
'fal'
|
|
747
|
+
|
|
748
|
+
| Set object |
|
|
749
|
+
| size |
|
|
750
|
+
|
|
751
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
752
|
+
|
|
753
|
+
union
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
| \- |
|
|
758
|
+
|
|
759
|
+
"5x"
|
|
760
|
+
|
|
761
|
+
|
|
|
762
|
+
| spin |
|
|
763
|
+
|
|
764
|
+
Accepts a numeric value for speed for one rotation.
|
|
765
|
+
|
|
766
|
+
union
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
| \- | Set object |
|
|
771
|
+
|
|
772
|
+
### Rotate
|
|
773
|
+
|
|
774
|
+
The `rotate` prop can be set to 90, 180 or 270 degrees.
|
|
775
|
+
|
|
776
|
+
[](./iframe.html?id=components-icon--rotate)
|
|
777
|
+
|
|
778
|
+
original
|
|
779
|
+
|
|
780
|
+
90
|
|
781
|
+
|
|
782
|
+
180
|
|
783
|
+
|
|
784
|
+
270
|
|
785
|
+
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
<IressInline gutter\="md"\>
|
|
789
|
+
<div\>
|
|
790
|
+
<IressIcon
|
|
791
|
+
name\="home"
|
|
792
|
+
size\="5x"
|
|
793
|
+
/>
|
|
794
|
+
<IressText align\="center"\>
|
|
795
|
+
original </IressText\>
|
|
796
|
+
</div\>
|
|
797
|
+
<div\>
|
|
798
|
+
<IressIcon
|
|
799
|
+
name\="home"
|
|
800
|
+
rotate\="90"
|
|
801
|
+
size\="5x"
|
|
802
|
+
/>
|
|
803
|
+
<IressText align\="center"\>
|
|
804
|
+
90 </IressText\>
|
|
805
|
+
</div\>
|
|
806
|
+
<div\>
|
|
807
|
+
<IressIcon
|
|
808
|
+
name\="home"
|
|
809
|
+
rotate\="180"
|
|
810
|
+
size\="5x"
|
|
811
|
+
/>
|
|
812
|
+
<IressText align\="center"\>
|
|
813
|
+
180 </IressText\>
|
|
814
|
+
</div\>
|
|
815
|
+
<div\>
|
|
816
|
+
<IressIcon
|
|
817
|
+
name\="home"
|
|
818
|
+
rotate\="270"
|
|
819
|
+
size\="5x"
|
|
820
|
+
/>
|
|
821
|
+
<IressText align\="center"\>
|
|
822
|
+
270 </IressText\>
|
|
823
|
+
</div\>
|
|
824
|
+
</IressInline\>
|
|
825
|
+
|
|
826
|
+
```
|
|
827
|
+
|
|
828
|
+
#### Props
|
|
829
|
+
|
|
830
|
+
| Name | Description | Default | Control |
|
|
831
|
+
| --- | --- | --- | --- |
|
|
832
|
+
| fixedWidth |
|
|
833
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
834
|
+
|
|
835
|
+
boolean
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
| \- | Set boolean |
|
|
840
|
+
| flip |
|
|
841
|
+
|
|
842
|
+
Flip the icon horizontally or vertically
|
|
843
|
+
|
|
844
|
+
union
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
| \- | Set object |
|
|
849
|
+
| mode |
|
|
850
|
+
|
|
851
|
+
Allows control of the icon color
|
|
852
|
+
|
|
853
|
+
union
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
| \- | Set object |
|
|
858
|
+
| name\* |
|
|
859
|
+
|
|
860
|
+
The name of the icon
|
|
861
|
+
|
|
862
|
+
string
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
| \- | home |
|
|
867
|
+
| rotate |
|
|
868
|
+
|
|
869
|
+
Amount of degrees to rotate the icon
|
|
870
|
+
|
|
871
|
+
union
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
| \- | \- |
|
|
876
|
+
| screenreaderText |
|
|
877
|
+
|
|
878
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
879
|
+
|
|
880
|
+
string
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
| \- | Set string |
|
|
885
|
+
| set |
|
|
886
|
+
|
|
887
|
+
The icon set to be used
|
|
888
|
+
|
|
889
|
+
union
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
|
894
|
+
|
|
895
|
+
'fal'
|
|
896
|
+
|
|
897
|
+
| Set object |
|
|
898
|
+
| size |
|
|
899
|
+
|
|
900
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
901
|
+
|
|
902
|
+
union
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
| \- |
|
|
907
|
+
|
|
908
|
+
"5x"
|
|
909
|
+
|
|
910
|
+
|
|
|
911
|
+
| spin |
|
|
912
|
+
|
|
913
|
+
Accepts a numeric value for speed for one rotation.
|
|
914
|
+
|
|
915
|
+
union
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
| \- | Set object |
|
|
920
|
+
|
|
921
|
+
### Spin
|
|
922
|
+
|
|
923
|
+
The `spin` prop can be set to half (fastest), 1, 2 or 3 (slowest) to control the speed of the icon spin animation, useful for loading spinners.
|
|
924
|
+
|
|
925
|
+
[](./iframe.html?id=components-icon--spin)
|
|
926
|
+
|
|
927
|
+
half
|
|
928
|
+
|
|
929
|
+
1
|
|
930
|
+
|
|
931
|
+
2
|
|
932
|
+
|
|
933
|
+
3
|
|
934
|
+
|
|
935
|
+
```
|
|
936
|
+
|
|
937
|
+
<IressInline gutter\="md"\>
|
|
938
|
+
<IressText\>
|
|
939
|
+
<IressIcon
|
|
940
|
+
name\="spinner"
|
|
941
|
+
screenreaderText\="Loading..."
|
|
942
|
+
spin\="half"
|
|
943
|
+
/>
|
|
944
|
+
{' '}half
|
|
945
|
+
</IressText\>
|
|
946
|
+
<IressText\>
|
|
947
|
+
<IressIcon
|
|
948
|
+
name\="spinner"
|
|
949
|
+
screenreaderText\="Loading..."
|
|
950
|
+
spin\="1"
|
|
951
|
+
/>
|
|
952
|
+
{' '}1
|
|
953
|
+
</IressText\>
|
|
954
|
+
<IressText\>
|
|
955
|
+
<IressIcon
|
|
956
|
+
name\="spinner"
|
|
957
|
+
screenreaderText\="Loading..."
|
|
958
|
+
spin\="2"
|
|
959
|
+
/>
|
|
960
|
+
{' '}2
|
|
961
|
+
</IressText\>
|
|
962
|
+
<IressText\>
|
|
963
|
+
<IressIcon
|
|
964
|
+
name\="spinner"
|
|
965
|
+
screenreaderText\="Loading..."
|
|
966
|
+
spin\="3"
|
|
967
|
+
/>
|
|
968
|
+
{' '}3
|
|
969
|
+
</IressText\>
|
|
970
|
+
</IressInline\>
|
|
971
|
+
|
|
972
|
+
```
|
|
973
|
+
|
|
974
|
+
#### Props
|
|
975
|
+
|
|
976
|
+
| Name | Description | Default | Control |
|
|
977
|
+
| --- | --- | --- | --- |
|
|
978
|
+
| fixedWidth |
|
|
979
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
980
|
+
|
|
981
|
+
boolean
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
| \- | Set boolean |
|
|
986
|
+
| flip |
|
|
987
|
+
|
|
988
|
+
Flip the icon horizontally or vertically
|
|
989
|
+
|
|
990
|
+
union
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
| \- | Set object |
|
|
995
|
+
| mode |
|
|
996
|
+
|
|
997
|
+
Allows control of the icon color
|
|
998
|
+
|
|
999
|
+
union
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
| \- | Set object |
|
|
1004
|
+
| name\* |
|
|
1005
|
+
|
|
1006
|
+
The name of the icon
|
|
1007
|
+
|
|
1008
|
+
string
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
| \- | spinner |
|
|
1013
|
+
| rotate |
|
|
1014
|
+
|
|
1015
|
+
Amount of degrees to rotate the icon
|
|
1016
|
+
|
|
1017
|
+
union
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
| \- | Set object |
|
|
1022
|
+
| screenreaderText |
|
|
1023
|
+
|
|
1024
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
1025
|
+
|
|
1026
|
+
string
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
| \- | Loading... |
|
|
1031
|
+
| set |
|
|
1032
|
+
|
|
1033
|
+
The icon set to be used
|
|
1034
|
+
|
|
1035
|
+
union
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
|
1040
|
+
|
|
1041
|
+
'fal'
|
|
1042
|
+
|
|
1043
|
+
| Set object |
|
|
1044
|
+
| size |
|
|
1045
|
+
|
|
1046
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
1047
|
+
|
|
1048
|
+
union
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
| \- | Set object |
|
|
1053
|
+
| spin |
|
|
1054
|
+
|
|
1055
|
+
Accepts a numeric value for speed for one rotation.
|
|
1056
|
+
|
|
1057
|
+
union
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
| \- | \- |
|
|
1062
|
+
|
|
1063
|
+
### Fixed Width
|
|
1064
|
+
|
|
1065
|
+
Because of the wide variety of Font Awesome icons, not every icon is the same size. This can cause alignment issued when the icons stack vertically, so you can use the `fixedWidth` prop to ensure each icon is the same width. Very useful when using icons in menus.
|
|
1066
|
+
|
|
1067
|
+
[](./iframe.html?id=components-icon--fixed-width)
|
|
1068
|
+
|
|
1069
|
+
Default width
|
|
1070
|
+
-------------
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
Fixed width
|
|
1075
|
+
-----------
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
```
|
|
1080
|
+
|
|
1081
|
+
<IressInline gutter\="md"\>
|
|
1082
|
+
<div\>
|
|
1083
|
+
<IressText
|
|
1084
|
+
element\="h2"
|
|
1085
|
+
variant\="h5"
|
|
1086
|
+
\>
|
|
1087
|
+
Default width </IressText\>
|
|
1088
|
+
<IressIcon
|
|
1089
|
+
className\="ids-styles--alt-background-v5202"
|
|
1090
|
+
name\="space-shuttle"
|
|
1091
|
+
size\="3x"
|
|
1092
|
+
/>
|
|
1093
|
+
<br />
|
|
1094
|
+
<IressIcon
|
|
1095
|
+
className\="ids-styles--alt-background-v5202"
|
|
1096
|
+
name\="wine-glass-alt"
|
|
1097
|
+
size\="3x"
|
|
1098
|
+
/>
|
|
1099
|
+
</div\>
|
|
1100
|
+
<div\>
|
|
1101
|
+
<IressText
|
|
1102
|
+
element\="h2"
|
|
1103
|
+
variant\="h5"
|
|
1104
|
+
\>
|
|
1105
|
+
Fixed width </IressText\>
|
|
1106
|
+
<IressIcon
|
|
1107
|
+
className\="ids-styles--alt-background-v5202"
|
|
1108
|
+
fixedWidth
|
|
1109
|
+
name\="space-shuttle"
|
|
1110
|
+
size\="3x"
|
|
1111
|
+
/>
|
|
1112
|
+
<br />
|
|
1113
|
+
<IressIcon
|
|
1114
|
+
className\="ids-styles--alt-background-v5202"
|
|
1115
|
+
fixedWidth
|
|
1116
|
+
name\="wine-glass-alt"
|
|
1117
|
+
size\="3x"
|
|
1118
|
+
/>
|
|
1119
|
+
</div\>
|
|
1120
|
+
</IressInline\>
|
|
1121
|
+
|
|
1122
|
+
```
|
|
1123
|
+
|
|
1124
|
+
#### Props
|
|
1125
|
+
|
|
1126
|
+
| Name | Description | Default | Control |
|
|
1127
|
+
| --- | --- | --- | --- |
|
|
1128
|
+
| fixedWidth |
|
|
1129
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
1130
|
+
|
|
1131
|
+
boolean
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
| \- | \- |
|
|
1136
|
+
| flip |
|
|
1137
|
+
|
|
1138
|
+
Flip the icon horizontally or vertically
|
|
1139
|
+
|
|
1140
|
+
union
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
| \- | Set object |
|
|
1145
|
+
| mode |
|
|
1146
|
+
|
|
1147
|
+
Allows control of the icon color
|
|
1148
|
+
|
|
1149
|
+
union
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
| \- | Set object |
|
|
1154
|
+
| name\* |
|
|
1155
|
+
|
|
1156
|
+
The name of the icon
|
|
1157
|
+
|
|
1158
|
+
string
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
| \- | \- |
|
|
1163
|
+
| rotate |
|
|
1164
|
+
|
|
1165
|
+
Amount of degrees to rotate the icon
|
|
1166
|
+
|
|
1167
|
+
union
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
| \- | Set object |
|
|
1172
|
+
| screenreaderText |
|
|
1173
|
+
|
|
1174
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
1175
|
+
|
|
1176
|
+
string
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
| \- | Set string |
|
|
1181
|
+
| set |
|
|
1182
|
+
|
|
1183
|
+
The icon set to be used
|
|
1184
|
+
|
|
1185
|
+
union
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
|
|
|
1190
|
+
|
|
1191
|
+
'fal'
|
|
1192
|
+
|
|
1193
|
+
| Set object |
|
|
1194
|
+
| size |
|
|
1195
|
+
|
|
1196
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
1197
|
+
|
|
1198
|
+
union
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
| \- |
|
|
1203
|
+
|
|
1204
|
+
"3x"
|
|
1205
|
+
|
|
1206
|
+
|
|
|
1207
|
+
| spin |
|
|
1208
|
+
|
|
1209
|
+
Accepts a numeric value for speed for one rotation.
|
|
1210
|
+
|
|
1211
|
+
union
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
| \- | Set object |
|
|
1216
|
+
|
|
1217
|
+
Examples
|
|
1218
|
+
--------
|
|
1219
|
+
|
|
1220
|
+
### External link
|
|
1221
|
+
|
|
1222
|
+
Version 4 of IDS included some bespoke styles to make an "external link" icon in an `IressText` component look nice. We've removed these in V5 as we found they were having unintended side effects. If you still wish to style your external link icons, you can use either some custom CSS (like below) or simply make the icon size `xs`:
|
|
1223
|
+
|
|
1224
|
+
[](./iframe.html?id=components-icon--external-link)
|
|
1225
|
+
|
|
1226
|
+
[Go to this link:](https://www.iress.com/)
|
|
1227
|
+
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
<IressText\>
|
|
1231
|
+
<a
|
|
1232
|
+
href\="https://www.iress.com/"
|
|
1233
|
+
rel\="noreferrer"
|
|
1234
|
+
target\="\_blank"
|
|
1235
|
+
\>
|
|
1236
|
+
Go to this link: <IressIcon
|
|
1237
|
+
name\="external-link"
|
|
1238
|
+
size\="xs"
|
|
1239
|
+
style\={{
|
|
1240
|
+
'inset-block-start': '-0.25em',
|
|
1241
|
+
'margin-inline-start': 'var(--iress-g-spacing-xs, var(--iress-default-spacing-xs))',
|
|
1242
|
+
position: 'relative'
|
|
1243
|
+
}}
|
|
1244
|
+
/>
|
|
1245
|
+
</a\>
|
|
1246
|
+
</IressText\>
|
|
1247
|
+
|
|
1248
|
+
```
|
|
1249
|
+
|
|
1250
|
+
#### Props
|
|
1251
|
+
|
|
1252
|
+
| Name | Description | Default | Control |
|
|
1253
|
+
| --- | --- | --- | --- |
|
|
1254
|
+
| fixedWidth |
|
|
1255
|
+
Adds fixed width class for Font Awesome icons - fa-fw
|
|
1256
|
+
|
|
1257
|
+
boolean
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
| \- | Set boolean |
|
|
1262
|
+
| flip |
|
|
1263
|
+
|
|
1264
|
+
Flip the icon horizontally or vertically
|
|
1265
|
+
|
|
1266
|
+
union
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
| \- | Set object |
|
|
1271
|
+
| mode |
|
|
1272
|
+
|
|
1273
|
+
Allows control of the icon color
|
|
1274
|
+
|
|
1275
|
+
union
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
| \- | Set object |
|
|
1280
|
+
| name\* |
|
|
1281
|
+
|
|
1282
|
+
The name of the icon
|
|
1283
|
+
|
|
1284
|
+
string
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
| \- | Set string |
|
|
1289
|
+
| rotate |
|
|
1290
|
+
|
|
1291
|
+
Amount of degrees to rotate the icon
|
|
1292
|
+
|
|
1293
|
+
union
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
| \- | Set object |
|
|
1298
|
+
| screenreaderText |
|
|
1299
|
+
|
|
1300
|
+
Adds screen reader text if the icon needs to be visible to screen reader users
|
|
1301
|
+
|
|
1302
|
+
string
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
| \- | Set string |
|
|
1307
|
+
| set |
|
|
1308
|
+
|
|
1309
|
+
The icon set to be used
|
|
1310
|
+
|
|
1311
|
+
union
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
|
1316
|
+
|
|
1317
|
+
'fal'
|
|
1318
|
+
|
|
1319
|
+
| Set object |
|
|
1320
|
+
| size |
|
|
1321
|
+
|
|
1322
|
+
Re-size the icon using the `IconSize` enum, based on FontAwesome's size classes
|
|
1323
|
+
|
|
1324
|
+
union
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
| \- | Set object |
|
|
1329
|
+
| spin |
|
|
1330
|
+
|
|
1331
|
+
Accepts a numeric value for speed for one rotation.
|
|
1332
|
+
|
|
1333
|
+
union
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
| \- | Set object |
|