How to use the library function from @fortawesome/fontawesome-svg-core

Find comprehensive JavaScript @fortawesome/fontawesome-svg-core.library code examples handpicked from public code repositorys.

6
7
8
9
10
11
12
13
14
15
16
17


var _fontawesomeSvgCore = require("@fortawesome/fontawesome-svg-core");


var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");


var _default = _fontawesomeSvgCore.library.add(_freeSolidSvgIcons.faPen, _freeSolidSvgIcons.faArrowRight);


exports["default"] = _default;
fork icon2
star icon0
watch icon0

22
23
24
25
26
27
28
29
30
31
32
33
const draftjsConductor = require('draftjs-conductor');
const draftJsExportHtml = require('draft-js-export-html');
const parser = require('html-react-parser');


function iconLibrary() {
  fontawesomeSvgCore.library.add(freeSolidSvgIcons.faAlignCenter, freeSolidSvgIcons.faAlignJustify, freeSolidSvgIcons.faAlignLeft, freeSolidSvgIcons.faAlignRight, freeSolidSvgIcons.faArrowDown, freeSolidSvgIcons.faArrowLeft, freeSolidSvgIcons.faArrowRight, freeSolidSvgIcons.faArrowUp, freeSolidSvgIcons.faBackward, freeSolidSvgIcons.faBars, freeSolidSvgIcons.faBan, freeSolidSvgIcons.faBold, freeSolidSvgIcons.faCheck, freeSolidSvgIcons.faCheckSquare, freeSolidSvgIcons.faChevronDown, freeSolidSvgIcons.faChevronRight, freeSolidSvgIcons.faChevronLeft, freeSolidSvgIcons.faChevronUp, freeSolidSvgIcons.faCloudUploadAlt, freeSolidSvgIcons.faCircle, freeSolidSvgIcons.faCode, freeSolidSvgIcons.faCog, freeSolidSvgIcons.faCompressAlt, freeSolidSvgIcons.faDollarSign, freeSolidSvgIcons.faDownload, freeSolidSvgIcons.faExclamationCircle, freeSolidSvgIcons.faExclamationTriangle, freeSolidSvgIcons.faExpandAlt, freeSolidSvgIcons.faEye, freeSolidSvgIcons.faEyeSlash, freeSolidSvgIcons.faFilter, freeSolidSvgIcons.faFlag, freeSolidSvgIcons.faFont, freeSolidSvgIcons.faForward, freeSolidSvgIcons.faImage, freeSolidSvgIcons.faIndent, freeSolidSvgIcons.faItalic, freeSolidSvgIcons.faLink, freeSolidSvgIcons.faListOl, freeSolidSvgIcons.faListUl, freeSolidSvgIcons.faLock, freeSolidSvgIcons.faLongArrowAltRight, freeSolidSvgIcons.faMapMarkerAlt, freeSolidSvgIcons.faOutdent, freeSolidSvgIcons.faPaintBrush, freeSolidSvgIcons.faParagraph, freeSolidSvgIcons.faPencilAlt, freeSolidSvgIcons.faPrint, freeSolidSvgIcons.faQuestion, freeSolidSvgIcons.faQuoteRight, freeSolidSvgIcons.faSearch, freeSolidSvgIcons.faSearchPlus, freeSolidSvgIcons.faSearchMinus, freeSolidSvgIcons.faSortUp, freeSolidSvgIcons.faSortDown, freeSolidSvgIcons.faSquare, freeSolidSvgIcons.faStepBackward, freeSolidSvgIcons.faStepForward, freeSolidSvgIcons.faStrikethrough, freeSolidSvgIcons.faSyncAlt, freeSolidSvgIcons.faTable, freeSolidSvgIcons.faTint, freeSolidSvgIcons.faTrashAlt, freeSolidSvgIcons.faUnderline, freeSolidSvgIcons.faUser);
}


const styles = {"modal__wrapper":"modal-module_modal__wrapper__Pu4Ik","open":"modal-module_open__qDVgF","modal__wrapper_closed":"modal-module_modal__wrapper_closed__LQ3tF","closed":"modal-module_closed__QRp3X","modal__overlay":"modal-module_modal__overlay__NR1YT","start":"modal-module_start__C6xiQ","modal__overlay_closed":"modal-module_modal__overlay_closed__l-kGz","finish":"modal-module_finish__s8bab","root":"modal-module_root__8rQfW","modalRoot":"modal-module_modalRoot__oC3rk"};

fork icon0
star icon0
watch icon2

47
48
49
50
51
52
53
54
55
56
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
        var lib = args_1[_a];
        fontawesome_svg_core_1.library.add(lib);
    }
}
fortAwesomeAdd(free_regular_svg_icons_1.faSquare, free_regular_svg_icons_1.faCheckSquare, free_solid_svg_icons_1.faCaretRight);
var CheckboxInContextmenu = /** @class */ (function (_super) {
fork icon0
star icon0
watch icon1