@@ -7,7 +7,7 @@ group: Components
77
88import { Card } from ' boot-cell/source/Content/Card' ;
99import { Button } from ' boot-cell/source/Form/Button' ;
10- import { Nav } from ' boot-cell/source/Navigator/Nav' ;
10+ import { Nav , NavLink } from ' boot-cell/source/Navigator/Nav' ;
1111
1212import { Example } from ' ../../../source/component/Example' ;
1313
@@ -245,19 +245,11 @@ Add some navigation to a card’s header (or block) with BootCell’s [`<Nav />`
245245 <Card
246246 className = " text-center"
247247 header = {
248- <Nav
249- className = " card-header-tabs"
250- itemMode = " tabs"
251- list = { [
252- { title: ' Active' , href: ' javascript: void;' },
253- { title: ' Link' , href: ' javascript: void;' },
254- {
255- title: ' Disabled' ,
256- href: ' javascript: void;' ,
257- disabled: true
258- }
259- ]}
260- />
248+ <Nav className = " card-header-tabs" itemMode = " tabs" >
249+ <NavLink active >Active</NavLink >
250+ <NavLink >Link</NavLink >
251+ <NavLink disabled >Disabled</NavLink >
252+ </Nav >
261253 }
262254 title = " Special title treatment"
263255 text = " With supporting text below as a natural lead-in to additional content."
@@ -269,26 +261,18 @@ Add some navigation to a card’s header (or block) with BootCell’s [`<Nav />`
269261``` TSX
270262import { render , createCell } from ' web-cell' ;
271263import { Card } from ' boot-cell/source/Content/Card' ;
272- import { Nav } from ' boot-cell/source/Navigator/Nav' ;
264+ import { Nav , NavLink } from ' boot-cell/source/Navigator/Nav' ;
273265import { Button } from ' boot-cell/source/Form/Button' ;
274266
275267render (
276268 <Card
277269 className = " text-center"
278270 header = {
279- <Nav
280- className = " card-header-tabs"
281- itemMode = " tabs"
282- list = { [
283- { title: ' Active' , href: ' javascript: void;' },
284- { title: ' Link' , href: ' javascript: void;' },
285- {
286- title: ' Disabled' ,
287- href: ' javascript: void;' ,
288- disabled: true
289- }
290- ]}
291- />
271+ <Nav className = " card-header-tabs" itemMode = " tabs" >
272+ <NavLink active >Active</NavLink >
273+ <NavLink >Link</NavLink >
274+ <NavLink disabled >Disabled</NavLink >
275+ </Nav >
292276 }
293277 title = " Special title treatment"
294278 text = " With supporting text below as a natural lead-in to additional content."
@@ -302,19 +286,11 @@ render(
302286 <Card
303287 className = " text-center"
304288 header = {
305- <Nav
306- className = " card-header-pills"
307- itemMode = " pills"
308- list = { [
309- { title: ' Active' , href: ' javascript: void;' },
310- { title: ' Link' , href: ' javascript: void;' },
311- {
312- title: ' Disabled' ,
313- href: ' javascript: void;' ,
314- disabled: true
315- }
316- ]}
317- />
289+ <Nav className = " card-header-pills" itemMode = " pills" >
290+ <NavLink active >Active</NavLink >
291+ <NavLink >Link</NavLink >
292+ <NavLink disabled >Disabled</NavLink >
293+ </Nav >
318294 }
319295 title = " Special title treatment"
320296 text = " With supporting text below as a natural lead-in to additional content."
@@ -326,26 +302,18 @@ render(
326302``` TSX
327303import { render , createCell } from ' web-cell' ;
328304import { Card } from ' boot-cell/source/Content/Card' ;
329- import { Nav } from ' boot-cell/source/Navigator/Nav' ;
305+ import { Nav , NavLink } from ' boot-cell/source/Navigator/Nav' ;
330306import { Button } from ' boot-cell/source/Form/Button' ;
331307
332308render (
333309 <Card
334310 className = " text-center"
335311 header = {
336- <Nav
337- className = " card-header-pills"
338- itemMode = " pills"
339- list = { [
340- { title: ' Active' , href: ' javascript: void;' },
341- { title: ' Link' , href: ' javascript: void;' },
342- {
343- title: ' Disabled' ,
344- href: ' javascript: void;' ,
345- disabled: true
346- }
347- ]}
348- />
312+ <Nav className = " card-header-pills" itemMode = " pills" >
313+ <NavLink active >Active</NavLink >
314+ <NavLink >Link</NavLink >
315+ <NavLink disabled >Disabled</NavLink >
316+ </Nav >
349317 }
350318 title = " Special title treatment"
351319 text = " With supporting text below as a natural lead-in to additional content."
0 commit comments