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
Component first hides icons if they present to optimize for space and show as many items as possible. If there is still an overflow, it will display the items that don't fit in the `More` menu.
description="A unique name for the rendered 'nav' landmark. It will also be used to label the arrow
147
+
buttons that control the scroll behaviour on coarse pointer devices. (I.e.
148
+
'Scroll ${aria-label} left/right')
149
+
"
150
+
/>
132
151
<PropsTableRow
133
152
name="loadingCounters"
134
153
type="boolean"
@@ -146,18 +165,23 @@ If there is still overflow, the component will behave depending on the pointer.
146
165
### UnderlineNav.Item
147
166
148
167
<PropsTable>
168
+
<PropsTableRow
169
+
name="href"
170
+
type="string"
171
+
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)"
172
+
/>
149
173
<PropsTableRowname="icon"type="Component"description="The leading icon comes before item label" />
150
174
<PropsTableRowname="selected"type="boolean"description="Whether the link is selected" />
151
175
<PropsTableRow
152
176
name="onSelect"
153
177
type="(event) => void"
154
-
description="The handler that gets called when a nav link is selected"
178
+
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.)"
155
179
/>
156
180
<PropsTableRow
157
181
name="as"
158
-
type="string | Component"
182
+
type="string | React.ElementType"
159
183
defaultValue="a"
160
-
description="What kind of component needs to be rendered"
184
+
description="The underlying element to render — either a HTML element name or a React component."
0 commit comments