@@ -5,9 +5,9 @@ description: Bootstrap’s cards provide a flexible and extensible content conta
55group : Components
66---
77
8- import { Card } from ' boot-cell/source/Content/Card' ;
8+ import { Card , CardHeader , CardFooter } from ' boot-cell/source/Content/Card' ;
99import { Button } from ' boot-cell/source/Form/Button' ;
10- import { Nav , NavLink } from ' boot-cell/source/Navigator/Nav' ;
10+ import { NavLink } from ' boot-cell/source/Navigator/Nav' ;
1111
1212import { Example } from ' ../../../source/component/Example' ;
1313
@@ -150,32 +150,33 @@ Add an optional header and/or footer within a card.
150150
151151<Example >
152152 <Card
153- header = " Featured"
154153 title = " Special title treatment"
155154 text = " With supporting text below as a natural lead-in to additional content."
156155 >
156+ <CardHeader >Featured</CardHeader >
157157 <Button >Go somewhere</Button >
158158 </Card >
159159</Example >
160160
161161``` TSX
162162import { render , createCell } from ' web-cell' ;
163- import { Card } from ' boot-cell/source/Content/Card' ;
163+ import { Card , CardHeader } from ' boot-cell/source/Content/Card' ;
164164import { Button } from ' boot-cell/source/Form/Button' ;
165165
166166render (
167167 <Card
168- header = " Featured"
169168 title = " Special title treatment"
170169 text = " With supporting text below as a natural lead-in to additional content."
171170 >
171+ <CardHeader >Featured</CardHeader >
172172 <Button >Go somewhere</Button >
173173 </Card >
174174);
175175```
176176
177177<Example >
178- <Card header = " Quote" >
178+ <Card >
179+ <CardHeader >Quote</CardHeader >
179180 <blockquote className = " blockquote mb-0" >
180181 <p >
181182 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
@@ -190,10 +191,11 @@ render(
190191
191192``` TSX
192193import { render , createCell } from ' web-cell' ;
193- import { Card } from ' boot-cell/source/Content/Card' ;
194+ import { Card , CardHeader } from ' boot-cell/source/Content/Card' ;
194195
195196render (
196- <Card header = " Quote" >
197+ <Card >
198+ <CardHeader >Quote</CardHeader >
197199 <blockquote className = " blockquote mb-0" >
198200 <p >
199201 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
@@ -210,73 +212,69 @@ render(
210212<Example >
211213 <Card
212214 className = " text-center"
213- header = " Featured"
214215 title = " Special title treatment"
215216 text = " With supporting text below as a natural lead-in to additional content."
216- footer = " 2 days ago"
217217 >
218+ <CardHeader >Featured</CardHeader >
218219 <Button >Go somewhere</Button >
220+ <CardFooter >2 days ago</CardFooter >
219221 </Card >
220222</Example >
221223
222224``` TSX
223225import { render , createCell } from ' web-cell' ;
224- import { Card } from ' boot-cell/source/Content/Card' ;
226+ import { Card , CardHeader , CardFooter } from ' boot-cell/source/Content/Card' ;
225227import { Button } from ' boot-cell/source/Form/Button' ;
226228
227229render (
228230 <Card
229231 className = " text-center"
230- header = " Featured"
231232 title = " Special title treatment"
232233 text = " With supporting text below as a natural lead-in to additional content."
233- footer = " 2 days ago"
234234 >
235+ <CardHeader >Featured</CardHeader >
235236 <Button >Go somewhere</Button >
237+ <CardFooter >2 days ago</CardFooter >
236238 </Card >
237239);
238240```
239241
240242## Navigation
241243
242- Add some navigation to a card’s header (or block) with BootCell’s [ ` <Nav /> ` components] [ 1 ] .
244+ Add some navigation to a card’s header (or block) with BootCell’s [ ` <NavLink /> ` components] [ 1 ] .
243245
244246<Example >
245247 <Card
246248 className = " text-center"
247- header = {
248- <Nav className = " card-header-tabs" itemMode = " tabs" >
249- <NavLink active >Active</NavLink >
250- <NavLink >Link</NavLink >
251- <NavLink disabled >Disabled</NavLink >
252- </Nav >
253- }
254249 title = " Special title treatment"
255250 text = " With supporting text below as a natural lead-in to additional content."
256251 >
252+ <CardHeader itemMode = " tabs" >
253+ <NavLink active >Active</NavLink >
254+ <NavLink >Link</NavLink >
255+ <NavLink disabled >Disabled</NavLink >
256+ </CardHeader >
257257 <Button >Go somewhere</Button >
258258 </Card >
259259</Example >
260260
261261``` TSX
262262import { render , createCell } from ' web-cell' ;
263- import { Card } from ' boot-cell/source/Content/Card' ;
264- import { Nav , NavLink } from ' boot-cell/source/Navigator/Nav' ;
263+ import { Card , CardHeader } from ' boot-cell/source/Content/Card' ;
264+ import { NavLink } from ' boot-cell/source/Navigator/Nav' ;
265265import { Button } from ' boot-cell/source/Form/Button' ;
266266
267267render (
268268 <Card
269269 className = " text-center"
270- header = {
271- <Nav className = " card-header-tabs" itemMode = " tabs" >
272- <NavLink active >Active</NavLink >
273- <NavLink >Link</NavLink >
274- <NavLink disabled >Disabled</NavLink >
275- </Nav >
276- }
277270 title = " Special title treatment"
278271 text = " With supporting text below as a natural lead-in to additional content."
279272 >
273+ <CardHeader itemMode = " tabs" >
274+ <NavLink active >Active</NavLink >
275+ <NavLink >Link</NavLink >
276+ <NavLink disabled >Disabled</NavLink >
277+ </CardHeader >
280278 <Button >Go somewhere</Button >
281279 </Card >
282280);
@@ -285,39 +283,35 @@ render(
285283<Example >
286284 <Card
287285 className = " text-center"
288- header = {
289- <Nav className = " card-header-pills" itemMode = " pills" >
290- <NavLink active >Active</NavLink >
291- <NavLink >Link</NavLink >
292- <NavLink disabled >Disabled</NavLink >
293- </Nav >
294- }
295286 title = " Special title treatment"
296287 text = " With supporting text below as a natural lead-in to additional content."
297288 >
289+ <CardHeader itemMode = " pills" >
290+ <NavLink active >Active</NavLink >
291+ <NavLink >Link</NavLink >
292+ <NavLink disabled >Disabled</NavLink >
293+ </CardHeader >
298294 <Button >Go somewhere</Button >
299295 </Card >
300296</Example >
301297
302298``` TSX
303299import { render , createCell } from ' web-cell' ;
304- import { Card } from ' boot-cell/source/Content/Card' ;
305- import { Nav , NavLink } from ' boot-cell/source/Navigator/Nav' ;
300+ import { Card , CardHeader } from ' boot-cell/source/Content/Card' ;
301+ import { NavLink } from ' boot-cell/source/Navigator/Nav' ;
306302import { Button } from ' boot-cell/source/Form/Button' ;
307303
308304render (
309305 <Card
310306 className = " text-center"
311- header = {
312- <Nav className = " card-header-pills" itemMode = " pills" >
313- <NavLink active >Active</NavLink >
314- <NavLink >Link</NavLink >
315- <NavLink disabled >Disabled</NavLink >
316- </Nav >
317- }
318307 title = " Special title treatment"
319308 text = " With supporting text below as a natural lead-in to additional content."
320309 >
310+ <CardHeader itemMode = " pills" >
311+ <NavLink active >Active</NavLink >
312+ <NavLink >Link</NavLink >
313+ <NavLink disabled >Disabled</NavLink >
314+ </CardHeader >
321315 <Button >Go somewhere</Button >
322316 </Card >
323317);
0 commit comments