@@ -5,7 +5,7 @@ description: Wrapper component for FontAwesome v5 (CSS fonts)
55group : Components
66---
77
8- import { Icon } from ' boot-cell/source/Reminder/Icon' ;
8+ import { Icon , BGIcon } from ' boot-cell/source/Reminder/Icon' ;
99import { Table } from ' boot-cell/source/Content/Table' ;
1010
1111import { Example } from ' ../../../source/component/Example' ;
@@ -120,7 +120,7 @@ With the following properties, we can increase or decrease the size of icons rel
120120 <Icon name = " camera" size = " 10x" />
121121</Example >
122122
123- ``` JavaScript
123+ ``` TSX
124124import { render , Fragment } from ' web-cell' ;
125125import { Icon } from ' boot-cell/source/Reminder/Icon' ;
126126
@@ -171,7 +171,7 @@ For clarity in the following example, we’ve added a background color on the ic
171171 </ul >
172172</Example >
173173
174- ``` JavaScript
174+ ``` TSX
175175import { render } from ' web-cell' ;
176176import { Icon } from ' boot-cell/source/Reminder/Icon' ;
177177
@@ -214,7 +214,7 @@ Use `border` and `pull="right"` or `pull="left"` for easy pull quotes or article
214214 the current, borne back ceaselessly into the past.
215215</Example >
216216
217- ``` JavaScript
217+ ``` TSX
218218import { render , Fragment } from ' web-cell' ;
219219import { Icon } from ' boot-cell/source/Reminder/Icon' ;
220220
@@ -239,7 +239,7 @@ Use `border` in combination with pulled icon styles for more visual separation.
239239 the current, borne back ceaselessly into the past.
240240</Example >
241241
242- ``` JavaScript
242+ ``` TSX
243243import { render , Fragment } from ' web-cell' ;
244244import { Icon } from ' boot-cell/source/Reminder/Icon' ;
245245
@@ -271,7 +271,7 @@ To arbitrarily rotate and flip icons, use the `rotate` and `flip` properties whe
271271 <Icon name = " snowboarding" flip = " both" />
272272</Example >
273273
274- ``` JavaScript
274+ ``` TSX
275275import { render } from ' web-cell' ;
276276import { Icon } from ' boot-cell/source/Reminder/Icon' ;
277277
@@ -305,7 +305,7 @@ Works especially well with `name="spinner"` & everything in the [spinner icons c
305305 <Icon name = " stroopwafel" animation = " spin" />
306306</Example >
307307
308- ``` JavaScript
308+ ``` TSX
309309import { render } from ' web-cell' ;
310310import { Icon } from ' boot-cell/source/Reminder/Icon' ;
311311
@@ -347,7 +347,7 @@ Use `fa-ul` and `fa-li` to replace default bullets in unordered lists.
347347 </ul >
348348</Example >
349349
350- ``` JavaScript
350+ ``` TSX
351351import { render } from ' web-cell' ;
352352import { Icon } from ' boot-cell/source/Reminder/Icon' ;
353353
@@ -379,53 +379,29 @@ Then add the `stack={1}` property for the regularly sized icon and add the `stac
379379You can even throw larger icon classes on the parent to get further control of sizing.
380380
381381<Example >
382- <span className = " fa-stack fa-2x" >
383- <Icon name = " square" stack = { 2 } />
384- <Icon kind = " brands" name = " twitter" stack = { 1 } inverse />
385- </span >
386- <span className = " fa-stack fa-2x" >
387- <Icon name = " circle" stack = { 2 } />
388- <Icon name = " flag" stack = { 1 } inverse />
389- </span >
390- <span className = " fa-stack fa-2x" >
391- <Icon name = " square" stack = { 2 } />
392- <Icon name = " terminal" stack = { 1 } inverse />
393- </span >
394- <span className = " fa-stack fa-4x" >
395- <Icon name = " square" stack = { 2 } />
396- <Icon name = " terminal" stack = { 1 } inverse />
397- </span >
382+ <BGIcon type = " square" kind = " brands" name = " twitter" size = { 2 } />
383+ <BGIcon type = " circle" name = " flag" size = { 2 } />
384+ <BGIcon type = " square" name = " terminal" size = { 2 } />
385+ <BGIcon type = " square" name = " terminal" size = { 4 } />
398386 <span className = " fa-stack fa-2x" >
399387 <Icon name = " camera" stack = { 1 } />
400- <Icon name = " ban" stack = { 2 } className = " text- danger" />
388+ <Icon name = " ban" stack = { 2 } color = " danger" />
401389 </span >
402390</Example >
403391
404- ``` JavaScript
392+ ``` TSX
405393import { render , Fragment } from ' web-cell' ;
406- import { Icon } from ' boot-cell/source/Reminder/Icon' ;
394+ import { Icon , BGIcon } from ' boot-cell/source/Reminder/Icon' ;
407395
408396render (
409397 <Fragment >
410- < span className= " fa-stack fa-2x" >
411- < Icon name= " square" stack= {2 } / >
412- < Icon kind= " brands" name= " twitter" stack= {1 } inverse / >
413- < / span>
414- < span className= " fa-stack fa-2x" >
415- < Icon name= " circle" stack= {2 } / >
416- < Icon name= " flag" stack= {1 } inverse / >
417- < / span>
418- < span className= " fa-stack fa-2x" >
419- < Icon name= " square" stack= {2 } / >
420- < Icon name= " terminal" stack= {1 } inverse / >
421- < / span>
422- < span className= " fa-stack fa-4x" >
423- < Icon name= " square" stack= {2 } / >
424- < Icon name= " terminal" stack= {1 } inverse / >
425- < / span>
398+ <BGIcon type = " square" kind = " brands" name = " twitter" size = { 2 } />
399+ <BGIcon type = " circle" name = " flag" size = { 2 } />
400+ <BGIcon type = " square" name = " terminal" size = { 2 } />
401+ <BGIcon type = " square" name = " terminal" size = { 4 } />
426402 <span className = " fa-stack fa-2x" >
427403 <Icon name = " camera" stack = { 1 } />
428- < Icon name= " ban" stack= {2 } className = " text- danger" / >
404+ <Icon name = " ban" stack = { 2 } color = " danger" />
429405 </span >
430406 </Fragment >
431407);
0 commit comments