@fortawesome/fontawesome-svg-core#library TypeScript Examples
The following examples show how to use
@fortawesome/fontawesome-svg-core#library.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IconLibrary.ts From react-memory-game with MIT License | 6 votes |
library.add(
faChevronLeft,
faPlay,
faPause,
faUndo,
faClock,
faQuestionCircle,
faTimes,
faPalette,
// Icons for the game
faPoo,
faAnchor,
faMoon,
faAppleAlt,
faBell,
faBible,
faBomb,
faBone,
faCar,
faCat,
faChess,
faSkull,
faFeatherAlt,
faFire,
faHeart,
faMusic,
)
Example #2
Source File: App.tsx From TabMerger with GNU General Public License v3.0 | 6 votes |
/**
* Icons listed here no longer need to be imported in other files.
* Instead a string can be passed to the `icon` property.
* By default, the icons are all "solid", which is why `far` is also added ...
* ... simply do `icon={["far", "icon-name"]}` to use the "regular" version of "icon-name"
* @see https://fontawesome.com/v5.15/how-to-use/on-the-web/using-with/react#using
*/
library.add(
far,
faCog,
faSearch,
faTimes,
faWindowRestore,
faEllipsisV,
faWindowMaximize,
faTimesCircle,
faStar,
faMask,
faExclamationCircle,
faCopy,
faAngleDown,
faAngleUp,
faCheckCircle,
faUpload
);
Example #3
Source File: index.tsx From bad-cards-game with GNU Affero General Public License v3.0 | 6 votes |
library.add( faDotCircle, faCircle, faBars, faTimes, faInfoCircle, faTrophy, faShareSquare, faHeart, faInstagram, faTwitter, faGithub, faFacebook, faHandPointRight, faEdit, faSave, faCamera, faPlus, faMinus, faRandom, );
Example #4
Source File: fontawesome-config.ts From covidnet_ui with GNU Affero General Public License v3.0 | 6 votes |
// Description: add icons to be used in the app as needed
// Some are solid and some are from regular svg (hollow icons)
library.add(
faSearch,
faSearchPlus,
faHome,
faSpinner,
faExclamationTriangle,
faTrash,
faTrashAlt,
faEdit,
faUser,
faUserEdit,
faUserPlus,
faUserTimes,
faUserMinus,
faKey,
faCheck,
faCheckCircle,
faCalendarDay,
faClock,
faCalendarAlt,
farUser,
faFileAlt
);
Example #5
Source File: Icon.tsx From crust-apps with Apache License 2.0 | 5 votes |
// one-time init of FA libraries
library.add(far, fas);
Example #6
Source File: App.tsx From flect-chime-sdk-demo with Apache License 2.0 | 5 votes |
library.add(fas, far, fab);
Example #7
Source File: manager.ts From obsidian-admonition with MIT License | 5 votes |
/** Load Font Awesome Library */
library.add(fas, far, fab, faCopy);
Example #8
Source File: fa-init.ts From blog.uhy.ooo with MIT License | 5 votes |
library.add(faHome, faRss, faTags, faTwitter, faGithub)
Example #9
Source File: Icon.tsx From subscan-multisig-react with Apache License 2.0 | 5 votes |
// one-time init of FA libraries
library.add(fas);
Example #10
Source File: icons.ts From spurtcommerce with BSD 3-Clause "New" or "Revised" License | 5 votes |
library.add(...icons);
Example #11
Source File: products.module.ts From spurtcommerce with BSD 3-Clause "New" or "Revised" License | 5 votes |
library.add(...icons);
Example #12
Source File: SampleWebPart.tsx From spfx-fast-serve with MIT License | 5 votes |
library.add(faCamera);
Example #13
Source File: index.ts From next-core with GNU General Public License v3.0 | 5 votes |
export function initializeLibrary(): void {
library.add(fas, fab);
}
Example #14
Source File: fa-library.ts From eth2stats-dashboard with MIT License | 5 votes |
library.add(faBell, faChevronDown, faTimes, faArrowRight, faCheck, faPlusCircle, faExclamationCircle, faHeart, faCodeBranch, faMap, faList, faCircle, faDotCircle, faCheckCircle, faNetworkWired, faUsers, faCube, faSortUp, faSortDown, faEllipsisV, faSync, faMicrochip, faCheckDouble, faLaptopCode);
Example #15
Source File: main.ts From webapp with MIT License | 5 votes |
library.add(...fas, ...fab, ...fal, ...far);
Example #16
Source File: main.ts From snip with MIT License | 5 votes |
library.add(faLink, faHandPeace, faCopy, faInfoCircle);
Example #17
Source File: main.ts From cashcash-desktop with MIT License | 5 votes |
library.add(fas);
Example #18
Source File: main.ts From cashcash-desktop with MIT License | 5 votes |
fontawesome.library.add(fontawesomeFreeSolid);
Example #19
Source File: SecondSection.tsx From website with MIT License | 5 votes |
library.add(fab,fas);
Example #20
Source File: Footer.tsx From website with MIT License | 5 votes |
library.add(fab, faCommentDots);
Example #21
Source File: index.tsx From gatsby-markdown-typescript-personal-website with MIT License | 5 votes |
/* add any additional icon to the library */
library.add(fab, faLaptopCode, faDrawPolygon, faEdit, faEdit, faBullhorn, faMapMarkerAlt, faPhone, faPaperPlane);
Example #22
Source File: icon.tsx From NetStatus with MIT License | 5 votes |
_initFontAwesome = () => {
if ( _hasInitializedFontAwesome ) { return; }
_hasInitializedFontAwesome = true;
library.add(faCheckCircle, faPlug, faQuestionCircle, faExclamationTriangle, faWifi, faMapMarkerAlt, faClock);
}
Example #23
Source File: Input.tsx From avalon.ist with MIT License | 5 votes |
library.add(faHome, faLock, faUser, faEnvelope, faPaperPlane, faEye, faEyeSlash);