This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface IconDefinition extends IconLookup { | |
icon: [ | |
number, // width | |
number, // height | |
string[], // ligatures | |
string, // unicode | |
IconPathData // svgPathData -> string | string[] | |
]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CustomIconExample: IconDefinition & IconLookup = { | |
prefix: 'fab', | |
iconName: 'example-icon', | |
icon: [ | |
64, // viewBox width | |
64, // viewBox height | |
[], // ligatures | |
'#000000', // fill/fillColor | |
'M24 22.525H0' // iconPath(s) | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[min-x min-y width height] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
library, | |
IconDefinition, | |
IconLookup | |
} from '@fortawesome/fontawesome-svg-core'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
aria-hidden="true" | |
focusable="false" | |
width="1em" | |
height="1em" | |
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" | |
preserveAspectRatio="xMidYMid meet" | |
viewBox="0 0 24 24" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg | |
width="1" | |
height="1" | |
viewBox="0 0 24 24" | |
fill="none" | |
xmlns="http://www.w3.org/2000/svg" | |
> | |
<g clip-path="url(#clip0)"> | |
<path d="M1 0.938607H0L0.5 0.0615234L1 0.938607Z" fill="#626262" /> | |
</g> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const faCustomVercelIcon: IconDefinition & IconLookup = { | |
prefix: 'fab', | |
iconName: 'vercel-icon', | |
icon: [ | |
24, | |
24, | |
[], | |
'none', | |
'M24 22.525H0l12-21.05l12 21.05z' | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const faCustomVercelIcon: IconDefinition & IconLookup = { | |
prefix: 'fab', | |
iconName: 'vercel-icon', | |
icon: [ | |
24, | |
24, | |
[], | |
'none', | |
'M24 22.525H0l12-21.05l12 21.05z' | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type IconName = 'vercel-icon' | '500px' | | |
'accessible-icon' | | |
'accusoft' | | |
'acquisitions-incorporated' | | |
// ...7,846 lines later... | |
'wrench' | | |
'x-ray' | | |
'yen-sign' | | |
'yin-yang'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type IconPrefix = "fas" | "fab" | "fac" | "far" | "fal" | "fad"; |