@iress-oss/ids-mcp-server 5.15.0 → 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} +1515 -353
- package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +170 -54
- 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-provider-docs.md → components_components-provider-docs.md} +41 -32
- 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} +181 -79
- 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 -1074
- 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 -209
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Recipes
|
|
2
|
+
=======
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Custom navbars
|
|
5
|
+
--------------
|
|
6
6
|
|
|
7
7
|
At its essence, the navbar component is a coloured panel. This means you can easily create custom navbars by creating your own content structure and passing everything into the `children` slot.
|
|
8
8
|
|
|
@@ -10,10 +10,12 @@ If you're creating a custom navbar, there are a few things to be aware of. First
|
|
|
10
10
|
|
|
11
11
|
Secondly, you'll need to make sure your content is accessible; for example using a `nav` element with an `aria-label` when you add navigation links.
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Custom responsive navbar
|
|
14
14
|
|
|
15
15
|
This example uses existing IDS components to create a custom responsive navbar. On smaller screens the main `nav` in the `IressNavbar` is hidden, and a menu button is shown. The menu button triggers a slideout that contains the nav links.
|
|
16
16
|
|
|
17
|
+
[](./iframe.html?id=components-navbar-recipes--custom-responsive-navbar)
|
|
18
|
+
|
|
17
19
|

|
|
18
20
|
|
|
19
21
|
Custom navbar
|
|
@@ -21,9 +23,7 @@ Custom navbar
|
|
|
21
23
|
|
|
22
24
|
[Link 1](#)[Link 2](#)[Link 3](#)
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
26
|
+
```
|
|
27
27
|
|
|
28
28
|
const Navbar \= () \=> {
|
|
29
29
|
const { showSlideout } \= useSlideout();
|
|
@@ -79,14 +79,143 @@ export const ResponsiveNavbar \= () \=> (
|
|
|
79
79
|
</IressSlideoutProvider\>
|
|
80
80
|
);
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
#### Props
|
|
85
|
+
|
|
86
|
+
| Name | Description | Default | Control |
|
|
87
|
+
| --- | --- | --- | --- |
|
|
88
|
+
| breakpoint |
|
|
89
|
+
Sets the breakpoint at which the main nav content is hidden, and replaced by a hamburger menu. If not set, the navbar won't be responsive.
|
|
90
|
+
|
|
91
|
+
union
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
| \- | Set object |
|
|
96
|
+
| children |
|
|
97
|
+
|
|
98
|
+
Content to be rendered inside the navbar (e.g. navigation links).
|
|
99
|
+
|
|
100
|
+
ReactNode
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
| \- | Set object |
|
|
105
|
+
| fixed |
|
|
106
|
+
|
|
107
|
+
Fixes the navbar with relation to the viewport if true. If false, the navbar will scroll out of view when the user scrolls.
|
|
108
|
+
|
|
109
|
+
boolean
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
|
114
|
+
|
|
115
|
+
false
|
|
116
|
+
|
|
117
|
+
| Set boolean |
|
|
118
|
+
| handledFocus |
|
|
119
|
+
|
|
120
|
+
When navbar is fixed, elements that are obscured by the fixed navbar are scrolled into view when they receive focus.
|
|
121
|
+
|
|
122
|
+
boolean
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
|
127
|
+
|
|
128
|
+
false
|
|
129
|
+
|
|
130
|
+
| Set boolean |
|
|
131
|
+
| homeUrl |
|
|
132
|
+
|
|
133
|
+
Sets the url of the home link
|
|
134
|
+
|
|
135
|
+
string
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
|
140
|
+
|
|
141
|
+
''
|
|
142
|
+
|
|
143
|
+
| Set string |
|
|
144
|
+
| horizontalAlign |
|
|
145
|
+
|
|
146
|
+
Sets the alignment of the nav; either start (all left-aligned), between (children slot left-aligned and nav slot right-aligned) or end (all right-aligned)
|
|
147
|
+
|
|
148
|
+
union
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
| \- | Set object |
|
|
153
|
+
| logo |
|
|
154
|
+
|
|
155
|
+
Content for the logo slot.
|
|
156
|
+
|
|
157
|
+
ReactNode
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
| \- | Set object |
|
|
162
|
+
| logoAltText |
|
|
83
163
|
|
|
84
|
-
|
|
164
|
+
Adds alt text to the logo's
|
|
165
|
+
|
|
166
|
+
string
|
|
167
|
+
|
|
168
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead, and `alt` text to your img.</td></tr></tbody></table>
|
|
169
|
+
|
|
170
|
+
|
|
|
171
|
+
|
|
172
|
+
''
|
|
173
|
+
|
|
174
|
+
| Set string |
|
|
175
|
+
| logoSrc |
|
|
176
|
+
|
|
177
|
+
Sets the source url of the logo
|
|
178
|
+
|
|
179
|
+
string
|
|
180
|
+
|
|
181
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead with the proper `src` attribute.</td></tr></tbody></table>
|
|
182
|
+
|
|
183
|
+
|
|
|
184
|
+
|
|
185
|
+
''
|
|
186
|
+
|
|
187
|
+
| Set string |
|
|
188
|
+
| nav |
|
|
189
|
+
|
|
190
|
+
Content for the nav slot.
|
|
191
|
+
|
|
192
|
+
ReactNode
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
| \- | \- |
|
|
197
|
+
| navLabel |
|
|
198
|
+
|
|
199
|
+
The name of the nav element (used by screen reader users). The nav element is wrapped around any content in the Nav slot
|
|
200
|
+
|
|
201
|
+
string
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
|
206
|
+
|
|
207
|
+
'Main navigation'
|
|
208
|
+
|
|
209
|
+
| Set string |
|
|
210
|
+
|
|
211
|
+
### Custom navbar with other IDS components
|
|
85
212
|
|
|
86
213
|
Not all navbars contain navigation links; often they contain global actions or filters. The example below shows a navbar containing a user dropdown, two buttons and a global search field.
|
|
87
214
|
|
|
88
215
|
Because there are no navigation links, we don't need to add a nav element in this example.
|
|
89
216
|
|
|
217
|
+
[](./iframe.html?id=components-navbar-recipes--custom-consuming-navbar)
|
|
218
|
+
|
|
90
219
|

|
|
91
220
|
|
|
92
221
|
Barry George
|
|
@@ -97,9 +226,7 @@ Person 1Person 2Person 3
|
|
|
97
226
|
|
|
98
227
|
**Input**
|
|
99
228
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
229
|
+
```
|
|
103
230
|
|
|
104
231
|
<IressNavbar horizontalAlign\="between"\>
|
|
105
232
|
<IressInline
|
|
@@ -145,7 +272,7 @@ Hide code
|
|
|
145
272
|
hiddenLabel
|
|
146
273
|
label\="Input"
|
|
147
274
|
\>
|
|
148
|
-
<
|
|
275
|
+
<ForwardedInput
|
|
149
276
|
name\="test-input"
|
|
150
277
|
prepend\={<IressIcon name\="search" />}
|
|
151
278
|
/>
|
|
@@ -154,28 +281,188 @@ Hide code
|
|
|
154
281
|
</IressInline\>
|
|
155
282
|
</IressNavbar\>
|
|
156
283
|
|
|
157
|
-
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
#### Props
|
|
287
|
+
|
|
288
|
+
| Name | Description | Default | Control |
|
|
289
|
+
| --- | --- | --- | --- |
|
|
290
|
+
| breakpoint |
|
|
291
|
+
Sets the breakpoint at which the main nav content is hidden, and replaced by a hamburger menu. If not set, the navbar won't be responsive.
|
|
292
|
+
|
|
293
|
+
union
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
| \- | Set object |
|
|
298
|
+
| children |
|
|
299
|
+
|
|
300
|
+
Content to be rendered inside the navbar (e.g. navigation links).
|
|
301
|
+
|
|
302
|
+
ReactNode
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
| \- |
|
|
307
|
+
|
|
308
|
+
RAW
|
|
309
|
+
|
|
310
|
+
children :
|
|
311
|
+
|
|
312
|
+
{
|
|
313
|
+
|
|
314
|
+
* $$typeof : Symbol(react.transitional.element)
|
|
315
|
+
* type : ({ children, className, gutter = "none", horizontalAlign = "left", noWrap = false, verticalAlign = "top", ...restProps }) => { const classMap = { \[\`${InlineCssClass.HorizontalAlign}--${horizontalAlign}\`\]: true, \[InlineCssClass.NoWrap\]: noWrap, \[\`${InlineCssClass.VerticalAlign}--${verticalAlign}\`\]: true }; const cssClasses = classNames( className, InlineCssClass.Base, getResponsiveLayoutModifiers(InlineCssClass.Gutter, gutter, "none"), classMap ); return /\* @\_\_PURE\_\_ \*/ jsxDEV("div", { className: cssClasses, ...restProps, children }, void 0, false, { fileName: "/home/runner/work/design-system/design-system/packages/components/src/components/Inline/Inline.tsx", lineNumber: 33, columnNumber: 5 }, this); }
|
|
316
|
+
* key : null
|
|
317
|
+
* props :
|
|
318
|
+
|
|
319
|
+
{...} 3 keys
|
|
320
|
+
|
|
321
|
+
* \_owner : null
|
|
322
|
+
* \_store :
|
|
323
|
+
|
|
324
|
+
{...} 0 keys
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
|
|
158
330
|
|
|
159
|
-
|
|
160
|
-
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
|
336
|
+
| fixed |
|
|
337
|
+
|
|
338
|
+
Fixes the navbar with relation to the viewport if true. If false, the navbar will scroll out of view when the user scrolls.
|
|
339
|
+
|
|
340
|
+
boolean
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
|
345
|
+
|
|
346
|
+
false
|
|
347
|
+
|
|
348
|
+
| Set boolean |
|
|
349
|
+
| handledFocus |
|
|
350
|
+
|
|
351
|
+
When navbar is fixed, elements that are obscured by the fixed navbar are scrolled into view when they receive focus.
|
|
352
|
+
|
|
353
|
+
boolean
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
|
358
|
+
|
|
359
|
+
false
|
|
360
|
+
|
|
361
|
+
| Set boolean |
|
|
362
|
+
| homeUrl |
|
|
363
|
+
|
|
364
|
+
Sets the url of the home link
|
|
365
|
+
|
|
366
|
+
string
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
|
371
|
+
|
|
372
|
+
''
|
|
373
|
+
|
|
374
|
+
| Set string |
|
|
375
|
+
| horizontalAlign |
|
|
376
|
+
|
|
377
|
+
Sets the alignment of the nav; either start (all left-aligned), between (children slot left-aligned and nav slot right-aligned) or end (all right-aligned)
|
|
378
|
+
|
|
379
|
+
union
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
| \- |
|
|
384
|
+
|
|
385
|
+
"between"
|
|
386
|
+
|
|
387
|
+
|
|
|
388
|
+
| logo |
|
|
389
|
+
|
|
390
|
+
Content for the logo slot.
|
|
391
|
+
|
|
392
|
+
ReactNode
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
| \- | Set object |
|
|
397
|
+
| logoAltText |
|
|
398
|
+
|
|
399
|
+
Adds alt text to the logo's
|
|
400
|
+
|
|
401
|
+
string
|
|
402
|
+
|
|
403
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead, and `alt` text to your img.</td></tr></tbody></table>
|
|
404
|
+
|
|
405
|
+
|
|
|
406
|
+
|
|
407
|
+
''
|
|
408
|
+
|
|
409
|
+
| Set string |
|
|
410
|
+
| logoSrc |
|
|
411
|
+
|
|
412
|
+
Sets the source url of the logo
|
|
413
|
+
|
|
414
|
+
string
|
|
415
|
+
|
|
416
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead with the proper `src` attribute.</td></tr></tbody></table>
|
|
417
|
+
|
|
418
|
+
|
|
|
419
|
+
|
|
420
|
+
''
|
|
421
|
+
|
|
422
|
+
| Set string |
|
|
423
|
+
| nav |
|
|
424
|
+
|
|
425
|
+
Content for the nav slot.
|
|
426
|
+
|
|
427
|
+
ReactNode
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
| \- | Set object |
|
|
432
|
+
| navLabel |
|
|
433
|
+
|
|
434
|
+
The name of the nav element (used by screen reader users). The nav element is wrapped around any content in the Nav slot
|
|
435
|
+
|
|
436
|
+
string
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
|
441
|
+
|
|
442
|
+
'Main navigation'
|
|
443
|
+
|
|
444
|
+
| Set string |
|
|
445
|
+
|
|
446
|
+
Secondary navigation
|
|
447
|
+
--------------------
|
|
161
448
|
|
|
162
449
|
The Navbar component should only be used for primary navigation.
|
|
163
450
|
|
|
164
451
|
If your site has secondary navigation, you can use the Menu component. Here are a few examples.
|
|
165
452
|
|
|
166
|
-
###
|
|
453
|
+
### Navbar combined with secondary navigation
|
|
167
454
|
|
|
168
455
|
You can use an `IressPanel` component to render the secondary navigation directly below your navbar. Use an `IressMenu` component for the links, and make sure you wrap it in a `nav` element. You'll need to add an `aria-label` to the `nav` element to make sure its purpose is clear to screen reader users.
|
|
169
456
|
|
|
457
|
+
[](./iframe.html?id=components-navbar-recipes--navbar-with-secondary-navigation)
|
|
458
|
+
|
|
170
459
|

|
|
171
460
|
|
|
172
461
|
[Link 1](#)[Link 2](#)[Link 3](#)
|
|
173
462
|
|
|
174
463
|
Secondary link 1Secondary link 2Secondary link 3
|
|
175
464
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
465
|
+
```
|
|
179
466
|
|
|
180
467
|
<div\>
|
|
181
468
|
<IressNavbar
|
|
@@ -203,17 +490,144 @@ Hide code
|
|
|
203
490
|
</IressPanel\>
|
|
204
491
|
</div\>
|
|
205
492
|
|
|
206
|
-
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
#### Props
|
|
496
|
+
|
|
497
|
+
| Name | Description | Default | Control |
|
|
498
|
+
| --- | --- | --- | --- |
|
|
499
|
+
| breakpoint |
|
|
500
|
+
Sets the breakpoint at which the main nav content is hidden, and replaced by a hamburger menu. If not set, the navbar won't be responsive.
|
|
501
|
+
|
|
502
|
+
union
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
| \- | Set object |
|
|
507
|
+
| children |
|
|
508
|
+
|
|
509
|
+
Content to be rendered inside the navbar (e.g. navigation links).
|
|
510
|
+
|
|
511
|
+
ReactNode
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
| \- | Set object |
|
|
516
|
+
| fixed |
|
|
517
|
+
|
|
518
|
+
Fixes the navbar with relation to the viewport if true. If false, the navbar will scroll out of view when the user scrolls.
|
|
519
|
+
|
|
520
|
+
boolean
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
|
525
|
+
|
|
526
|
+
false
|
|
527
|
+
|
|
528
|
+
| Set boolean |
|
|
529
|
+
| handledFocus |
|
|
530
|
+
|
|
531
|
+
When navbar is fixed, elements that are obscured by the fixed navbar are scrolled into view when they receive focus.
|
|
532
|
+
|
|
533
|
+
boolean
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
|
207
538
|
|
|
208
|
-
|
|
539
|
+
false
|
|
540
|
+
|
|
541
|
+
| Set boolean |
|
|
542
|
+
| homeUrl |
|
|
543
|
+
|
|
544
|
+
Sets the url of the home link
|
|
545
|
+
|
|
546
|
+
string
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
|
551
|
+
|
|
552
|
+
''
|
|
553
|
+
|
|
554
|
+
| Set string |
|
|
555
|
+
| horizontalAlign |
|
|
556
|
+
|
|
557
|
+
Sets the alignment of the nav; either start (all left-aligned), between (children slot left-aligned and nav slot right-aligned) or end (all right-aligned)
|
|
558
|
+
|
|
559
|
+
union
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
| \- | Set object |
|
|
564
|
+
| logo |
|
|
565
|
+
|
|
566
|
+
Content for the logo slot.
|
|
567
|
+
|
|
568
|
+
ReactNode
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
| \- | \- |
|
|
573
|
+
| logoAltText |
|
|
574
|
+
|
|
575
|
+
Adds alt text to the logo's
|
|
576
|
+
|
|
577
|
+
string
|
|
578
|
+
|
|
579
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead, and `alt` text to your img.</td></tr></tbody></table>
|
|
580
|
+
|
|
581
|
+
|
|
|
582
|
+
|
|
583
|
+
''
|
|
584
|
+
|
|
585
|
+
| Set string |
|
|
586
|
+
| logoSrc |
|
|
587
|
+
|
|
588
|
+
Sets the source url of the logo
|
|
589
|
+
|
|
590
|
+
string
|
|
591
|
+
|
|
592
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead with the proper `src` attribute.</td></tr></tbody></table>
|
|
593
|
+
|
|
594
|
+
|
|
|
595
|
+
|
|
596
|
+
''
|
|
597
|
+
|
|
598
|
+
| Set string |
|
|
599
|
+
| nav |
|
|
600
|
+
|
|
601
|
+
Content for the nav slot.
|
|
602
|
+
|
|
603
|
+
ReactNode
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
| \- | \- |
|
|
608
|
+
| navLabel |
|
|
609
|
+
|
|
610
|
+
The name of the nav element (used by screen reader users). The nav element is wrapped around any content in the Nav slot
|
|
611
|
+
|
|
612
|
+
string
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
|
617
|
+
|
|
618
|
+
'Main navigation'
|
|
619
|
+
|
|
620
|
+
| Set string |
|
|
621
|
+
|
|
622
|
+
### Icon strips
|
|
209
623
|
|
|
210
624
|
You can change your secondary navigation to an icon strip by passing in icons to the `IressMenuItem` component. This can be rendered as a vertical strip (default), or a horizontal strip (by setting the `IressMenu` layout to `inline`).
|
|
211
625
|
|
|
212
626
|
The example below has some custom CSS to fix the menu to the side of its container. This includes setting `--iress-initial-offset` on the slideout element to ensure the slideout is correctly positioned next to the icon strip.
|
|
213
627
|
|
|
214
|
-
|
|
628
|
+
[](./iframe.html?id=components-navbar-recipes--icon-strip)
|
|
215
629
|
|
|
216
|
-
|
|
630
|
+
```
|
|
217
631
|
|
|
218
632
|
export const NavbarIconStrip \= () \=> {
|
|
219
633
|
const \[secondary, setSecondary\] \= useState(false);
|
|
@@ -294,12 +708,141 @@ export const NavbarIconStrip \= () \=> {
|
|
|
294
708
|
);
|
|
295
709
|
};
|
|
296
710
|
|
|
297
|
-
|
|
711
|
+
```
|
|
712
|
+
|
|
713
|
+
#### Props
|
|
714
|
+
|
|
715
|
+
| Name | Description | Default | Control |
|
|
716
|
+
| --- | --- | --- | --- |
|
|
717
|
+
| breakpoint |
|
|
718
|
+
Sets the breakpoint at which the main nav content is hidden, and replaced by a hamburger menu. If not set, the navbar won't be responsive.
|
|
719
|
+
|
|
720
|
+
union
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
| \- | Set object |
|
|
725
|
+
| children |
|
|
726
|
+
|
|
727
|
+
Content to be rendered inside the navbar (e.g. navigation links).
|
|
728
|
+
|
|
729
|
+
ReactNode
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
| \- | Set object |
|
|
734
|
+
| fixed |
|
|
735
|
+
|
|
736
|
+
Fixes the navbar with relation to the viewport if true. If false, the navbar will scroll out of view when the user scrolls.
|
|
737
|
+
|
|
738
|
+
boolean
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
|
743
|
+
|
|
744
|
+
false
|
|
745
|
+
|
|
746
|
+
| Set boolean |
|
|
747
|
+
| handledFocus |
|
|
748
|
+
|
|
749
|
+
When navbar is fixed, elements that are obscured by the fixed navbar are scrolled into view when they receive focus.
|
|
750
|
+
|
|
751
|
+
boolean
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
|
756
|
+
|
|
757
|
+
false
|
|
758
|
+
|
|
759
|
+
| Set boolean |
|
|
760
|
+
| homeUrl |
|
|
761
|
+
|
|
762
|
+
Sets the url of the home link
|
|
763
|
+
|
|
764
|
+
string
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
|
769
|
+
|
|
770
|
+
''
|
|
771
|
+
|
|
772
|
+
| Set string |
|
|
773
|
+
| horizontalAlign |
|
|
774
|
+
|
|
775
|
+
Sets the alignment of the nav; either start (all left-aligned), between (children slot left-aligned and nav slot right-aligned) or end (all right-aligned)
|
|
776
|
+
|
|
777
|
+
union
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
| \- | Set object |
|
|
782
|
+
| logo |
|
|
783
|
+
|
|
784
|
+
Content for the logo slot.
|
|
785
|
+
|
|
786
|
+
ReactNode
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
| \- | Set object |
|
|
791
|
+
| logoAltText |
|
|
792
|
+
|
|
793
|
+
Adds alt text to the logo's
|
|
794
|
+
|
|
795
|
+
string
|
|
796
|
+
|
|
797
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead, and `alt` text to your img.</td></tr></tbody></table>
|
|
298
798
|
|
|
299
|
-
|
|
799
|
+
|
|
|
800
|
+
|
|
801
|
+
''
|
|
802
|
+
|
|
803
|
+
| Set string |
|
|
804
|
+
| logoSrc |
|
|
805
|
+
|
|
806
|
+
Sets the source url of the logo
|
|
807
|
+
|
|
808
|
+
string
|
|
809
|
+
|
|
810
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead with the proper `src` attribute.</td></tr></tbody></table>
|
|
811
|
+
|
|
812
|
+
|
|
|
813
|
+
|
|
814
|
+
''
|
|
815
|
+
|
|
816
|
+
| Set string |
|
|
817
|
+
| nav |
|
|
818
|
+
|
|
819
|
+
Content for the nav slot.
|
|
820
|
+
|
|
821
|
+
ReactNode
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
| \- | Set object |
|
|
826
|
+
| navLabel |
|
|
827
|
+
|
|
828
|
+
The name of the nav element (used by screen reader users). The nav element is wrapped around any content in the Nav slot
|
|
829
|
+
|
|
830
|
+
string
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
|
835
|
+
|
|
836
|
+
'Main navigation'
|
|
837
|
+
|
|
838
|
+
| Set string |
|
|
839
|
+
|
|
840
|
+
### Fixed navigation
|
|
300
841
|
|
|
301
842
|
A common pattern for small screens is to fix navigation links at the bottom of the screen. This can be done by applying some custom CSS to your secondary navigation.
|
|
302
843
|
|
|
844
|
+
[](./iframe.html?id=components-navbar-recipes--fixed-navigation)
|
|
845
|
+
|
|
303
846
|

|
|
304
847
|
|
|
305
848
|
[](#)
|
|
@@ -338,9 +881,7 @@ Messages
|
|
|
338
881
|
|
|
339
882
|
](#)
|
|
340
883
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
884
|
+
```
|
|
344
885
|
|
|
345
886
|
<div className\="mobile-mockup-wrapper"\>
|
|
346
887
|
<IressNavbar
|
|
@@ -400,14 +941,131 @@ Hide code
|
|
|
400
941
|
</IressPanel\>
|
|
401
942
|
</div\>
|
|
402
943
|
|
|
403
|
-
|
|
944
|
+
```
|
|
945
|
+
|
|
946
|
+
#### Props
|
|
947
|
+
|
|
948
|
+
| Name | Description | Default | Control |
|
|
949
|
+
| --- | --- | --- | --- |
|
|
950
|
+
| breakpoint |
|
|
951
|
+
Sets the breakpoint at which the main nav content is hidden, and replaced by a hamburger menu. If not set, the navbar won't be responsive.
|
|
952
|
+
|
|
953
|
+
union
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
| \- | Set object |
|
|
958
|
+
| children |
|
|
959
|
+
|
|
960
|
+
Content to be rendered inside the navbar (e.g. navigation links).
|
|
961
|
+
|
|
962
|
+
ReactNode
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
| \- | Set object |
|
|
967
|
+
| fixed |
|
|
968
|
+
|
|
969
|
+
Fixes the navbar with relation to the viewport if true. If false, the navbar will scroll out of view when the user scrolls.
|
|
970
|
+
|
|
971
|
+
boolean
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
|
976
|
+
|
|
977
|
+
false
|
|
978
|
+
|
|
979
|
+
| Set boolean |
|
|
980
|
+
| handledFocus |
|
|
981
|
+
|
|
982
|
+
When navbar is fixed, elements that are obscured by the fixed navbar are scrolled into view when they receive focus.
|
|
983
|
+
|
|
984
|
+
boolean
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
|
989
|
+
|
|
990
|
+
false
|
|
991
|
+
|
|
992
|
+
| Set boolean |
|
|
993
|
+
| homeUrl |
|
|
994
|
+
|
|
995
|
+
Sets the url of the home link
|
|
996
|
+
|
|
997
|
+
string
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
|
1002
|
+
|
|
1003
|
+
''
|
|
1004
|
+
|
|
1005
|
+
| Set string |
|
|
1006
|
+
| horizontalAlign |
|
|
1007
|
+
|
|
1008
|
+
Sets the alignment of the nav; either start (all left-aligned), between (children slot left-aligned and nav slot right-aligned) or end (all right-aligned)
|
|
1009
|
+
|
|
1010
|
+
union
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
| \- | Set object |
|
|
1015
|
+
| logo |
|
|
1016
|
+
|
|
1017
|
+
Content for the logo slot.
|
|
1018
|
+
|
|
1019
|
+
ReactNode
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
| \- | \- |
|
|
1024
|
+
| logoAltText |
|
|
1025
|
+
|
|
1026
|
+
Adds alt text to the logo's
|
|
1027
|
+
|
|
1028
|
+
string
|
|
1029
|
+
|
|
1030
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead, and `alt` text to your img.</td></tr></tbody></table>
|
|
1031
|
+
|
|
1032
|
+
|
|
|
1033
|
+
|
|
1034
|
+
''
|
|
1035
|
+
|
|
1036
|
+
| Set string |
|
|
1037
|
+
| logoSrc |
|
|
1038
|
+
|
|
1039
|
+
Sets the source url of the logo
|
|
1040
|
+
|
|
1041
|
+
string
|
|
1042
|
+
|
|
1043
|
+
<table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use `logo` instead with the proper `src` attribute.</td></tr></tbody></table>
|
|
1044
|
+
|
|
1045
|
+
|
|
|
1046
|
+
|
|
1047
|
+
''
|
|
1048
|
+
|
|
1049
|
+
| Set string |
|
|
1050
|
+
| nav |
|
|
1051
|
+
|
|
1052
|
+
Content for the nav slot.
|
|
1053
|
+
|
|
1054
|
+
ReactNode
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
| \- | \- |
|
|
1059
|
+
| navLabel |
|
|
1060
|
+
|
|
1061
|
+
The name of the nav element (used by screen reader users). The nav element is wrapped around any content in the Nav slot
|
|
1062
|
+
|
|
1063
|
+
string
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
|
404
1068
|
|
|
405
|
-
|
|
1069
|
+
'Main navigation'
|
|
406
1070
|
|
|
407
|
-
|
|
408
|
-
* [Custom responsive navbar](#custom-responsive-navbar)
|
|
409
|
-
* [Custom navbar with other IDS components](#custom-navbar-with-other-ids-components)
|
|
410
|
-
* [Secondary navigation](#secondary-navigation)
|
|
411
|
-
* [Navbar combined with secondary navigation](#navbar-combined-with-secondary-navigation)
|
|
412
|
-
* [Icon strips](#icon-strips)
|
|
413
|
-
* [Fixed navigation](#fixed-navigation)
|
|
1071
|
+
| Set string |
|