You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="A unique name for the rendered 'nav' landmark. It will also be used to label the arrow buttons that control the scroll behaviour on coarse pointer devices. (I.e. 'Scroll ${aria-label} left/right')"
197
+
description="A unique name for the rendered 'nav' landmark. It will also be used to label the arrow
198
+
buttons that control the scroll behaviour on coarse pointer devices. (I.e.
199
+
'Scroll ${aria-label} left/right')
200
+
"
185
201
/>
186
202
<PropsTableRow
187
203
name="loadingCounters"
@@ -200,18 +216,23 @@ const Navigation = () => {
200
216
### UnderlineNav.Item
201
217
202
218
<PropsTable>
219
+
<PropsTableRow
220
+
name="href"
221
+
type="string"
222
+
description="The URL that the item navigates to. 'href' is passed to the underlying '<a>' element. If 'as' is specified, the component may need different props and 'href' is ignored. (Required prop for the react router is 'to' for example)"
223
+
/>
203
224
<PropsTableRowname="icon"type="Component"description="The leading icon comes before item label" />
204
225
<PropsTableRowname="selected"type="boolean"description="Whether the link is selected" />
205
226
<PropsTableRow
206
227
name="onSelect"
207
228
type="(event) => void"
208
-
description="The handler that gets called when a nav link is selected"
229
+
description="The handler that gets called when a nav link is selected. For example, a manual route binding can be done here(I.e. 'navigate(href)' for the react router.)"
209
230
/>
210
231
<PropsTableRow
211
232
name="as"
212
-
type="string | Component"
233
+
type="string | React.ElementType"
213
234
defaultValue="a"
214
-
description="What kind of component needs to be rendered"
235
+
description="The underlying element to render — either a HTML element name or a React component."
0 commit comments