@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 vote down vote up
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 vote down vote up
icon: IconDefinition;
Example #3
Source File: skills-item.component.ts    From nica-os with MIT License 5 votes vote down vote up
@Input() icon: IconDefinition;
Example #4
Source File: link.component.ts    From nica-os with MIT License 5 votes vote down vote up
@Input() icon: IconDefinition;
Example #5
Source File: error.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
alertIcon: IconDefinition;
Example #6
Source File: header.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
optimalIcon: IconDefinition;
Example #7
Source File: header.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
warningIcon: IconDefinition;
Example #8
Source File: header.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
alertIcon: IconDefinition;
Example #9
Source File: nodes-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
pinIcon: IconDefinition;
Example #10
Source File: transactions-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
swapIcon: IconDefinition;
Example #11
Source File: transactions-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
depositIcon: IconDefinition;
Example #12
Source File: transactions-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
withdrawIcon: IconDefinition;
Example #13
Source File: transactions-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
refundIcon: IconDefinition;
Example #14
Source File: transactions-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
addIcon: IconDefinition;
Example #15
Source File: transactions-table.component.ts    From thorchain-explorer-singlechain with MIT License 5 votes vote down vote up
timesIcon: IconDefinition;