@@ -170,10 +170,10 @@ Use `<b-nav-item-dropdown>` to place dropdown items within your nav.
170
170
toggle-class =" nav-link-custom"
171
171
right
172
172
>
173
- <b-dropdown-item >one </b-dropdown-item >
174
- <b-dropdown-item >two </b-dropdown-item >
173
+ <b-dropdown-item >One </b-dropdown-item >
174
+ <b-dropdown-item >Two </b-dropdown-item >
175
175
<b-dropdown-divider ></b-dropdown-divider >
176
- <b-dropdown-item >three </b-dropdown-item >
176
+ <b-dropdown-item >Three </b-dropdown-item >
177
177
</b-nav-item-dropdown >
178
178
</b-nav >
179
179
</div >
@@ -220,6 +220,96 @@ render the menu contents only when it is shown by setting the `lazy` prop to tru
220
220
See the [ ` <b-tabs> ` ] ( /docs/components/tabs ) component for creating tabbable panes of local content
221
221
(not suited for navigation).
222
222
223
+ ## Card integration
224
+
225
+ Use a ` <b-nav> ` in a [ ` <b-card> ` ] ( /docs/components/card ) header, by enabling the ` card-header ` prop
226
+ on ` <b-nav> ` and setting either the ` pills ` or ` tabs ` props:
227
+
228
+ ** Tabs style:**
229
+
230
+ ``` html
231
+ <div >
232
+ <b-card title =" Card Title" body-class =" text-center" >
233
+ <b-nav slot =" header" card-header tabs >
234
+ <b-nav-item active >Active</b-nav-item >
235
+ <b-nav-item >Inactive</b-nav-item >
236
+ <b-nav-item disabled >Disabled</b-nav-item >
237
+ <b-nav-item-dropdown text =" Dropdown" right >
238
+ <b-dropdown-item >One</b-dropdown-item >
239
+ <b-dropdown-item >Two</b-dropdown-item >
240
+ <b-dropdown-item >Three</b-dropdown-item >
241
+ </b-nav-item-dropdown >
242
+ </b-nav >
243
+
244
+ <b-card-text >
245
+ With supporting text below as a natural lead-in to additional content.
246
+ </b-card-text >
247
+
248
+ <b-button variant =" primary" >Go somewhere</b-button >
249
+ </b-card >
250
+ </div >
251
+
252
+ <!-- nav-card-tabs.vue -->
253
+ ```
254
+
255
+ ** Pill style:**
256
+
257
+ ``` html
258
+ <div >
259
+ <b-card title =" Card Title" body-class =" text-center" >
260
+ <b-nav slot =" header" card-header pills >
261
+ <b-nav-item active >Active</b-nav-item >
262
+ <b-nav-item >Inactive</b-nav-item >
263
+ <b-nav-item disabled >Disabled</b-nav-item >
264
+ <b-nav-item-dropdown text =" Dropdown" right >
265
+ <b-dropdown-item >One</b-dropdown-item >
266
+ <b-dropdown-item >Two</b-dropdown-item >
267
+ <b-dropdown-item >Three</b-dropdown-item >
268
+ </b-nav-item-dropdown >
269
+ </b-nav >
270
+
271
+ <b-card-text >
272
+ With supporting text below as a natural lead-in to additional content.
273
+ </b-card-text >
274
+
275
+ <b-button variant =" primary" >Go somewhere</b-button >
276
+ </b-card >
277
+ </div >
278
+
279
+ <!-- nav-card-pills.vue -->
280
+ ```
281
+
282
+ ** Plain style:**
283
+
284
+ The ` card-header ` prop is only needed when you are applying ` tabs ` or ` pills ` style.
285
+
286
+ ``` html
287
+ <div >
288
+ <b-card title =" Card Title" body-class =" text-center" >
289
+ <b-nav slot =" header" >
290
+ <b-nav-item active >Active</b-nav-item >
291
+ <b-nav-item >Inactive</b-nav-item >
292
+ <b-nav-item disabled >Disabled</b-nav-item >
293
+ <b-nav-item-dropdown text =" Dropdown" right >
294
+ <b-dropdown-item >One</b-dropdown-item >
295
+ <b-dropdown-item >Two</b-dropdown-item >
296
+ <b-dropdown-item >Three</b-dropdown-item >
297
+ </b-nav-item-dropdown >
298
+ </b-nav >
299
+
300
+ <b-card-text >
301
+ With supporting text below as a natural lead-in to additional content.
302
+ </b-card-text >
303
+
304
+ <b-button variant =" primary" >Go somewhere</b-button >
305
+ </b-card >
306
+ </div >
307
+
308
+ <!-- nav-card-plain.vue -->
309
+ ```
310
+
311
+ The ` card-header ` prop has no effect if the ` <b-nav> ` is ` vertical ` .
312
+
223
313
## Accessibility
224
314
225
315
If you're using ` <b-nav> ` to provide a navigation bar, be sure to add a ` role="navigation" ` to the
0 commit comments