@fortawesome/free-solid-svg-icons#IconDefinition TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#IconDefinition.
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: helpers.tsx From sync-party with GNU General Public License v3.0 | 6 votes |
getIconFromFileType = (url: string): IconProp => {
let icon: IconDefinition;
if (testMediaType(url) === 'audio') {
icon = faMusic;
} else if (testMediaType(url) === 'video') {
icon = faFilm;
} else if (getSite(url) === 'youtube') {
icon = faYoutube;
} else if (getSite(url) === 'soundcloud') {
icon = faSoundcloud;
} else if (getSite(url) === 'twitch') {
icon = faTwitch;
} else {
icon = faFile;
}
return icon;
}
Example #2
Source File: skills.ts From nica-os with MIT License | 5 votes |
icon: IconDefinition;
Example #3
Source File: skills-item.component.ts From nica-os with MIT License | 5 votes |
@Input() icon: IconDefinition;
Example #4
Source File: link.component.ts From nica-os with MIT License | 5 votes |
@Input() icon: IconDefinition;
Example #5
Source File: error.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
alertIcon: IconDefinition;
Example #6
Source File: header.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
optimalIcon: IconDefinition;
Example #7
Source File: header.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
warningIcon: IconDefinition;
Example #8
Source File: header.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
alertIcon: IconDefinition;
Example #9
Source File: nodes-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
pinIcon: IconDefinition;
Example #10
Source File: transactions-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
swapIcon: IconDefinition;
Example #11
Source File: transactions-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
depositIcon: IconDefinition;
Example #12
Source File: transactions-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
withdrawIcon: IconDefinition;
Example #13
Source File: transactions-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
refundIcon: IconDefinition;
Example #14
Source File: transactions-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
addIcon: IconDefinition;
Example #15
Source File: transactions-table.component.ts From thorchain-explorer-singlechain with MIT License | 5 votes |
timesIcon: IconDefinition;