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
| <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
| 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
| [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
| 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
| 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
| export type IconPrefix = "fas" | "fab" | "far" | "fal" | "fad"; | |
| export type IconPathData = string | string[] | |
| export interface IconLookup { | |
| prefix: IconPrefix; | |
| // IconName is defined in the code that will be generated at build time and bundled with this file. | |
| iconName: IconName; | |
| } | |
| export type IconName = '500px' | |
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" | "far" | "fal" | "fad"; | |
| export type IconPathData = string | string[] | |
| export interface IconLookup { | |
| prefix: IconPrefix; | |
| // IconName is defined in the code that will be generated at build time and bundled with this file. | |
| iconName: IconName; | |
| } | |
| export interface IconDefinition extends IconLookup { |
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 {IconDefinition, IconLookup, IconName, IconPrefix, IconPathData, IconPack } from '@fortawesome/fontawesome-common-types'; | |
| export {IconDefinition, IconLookup, IconName, IconPrefix, IconPathData, IconPack } from '@fortawesome/fontawesome-common-types'; | |
| export const dom: DOM; | |
| export const library: Library; | |
| export const parse: { transform(transformString: string): Transform }; | |
| export const config: Config; | |
| export function noAuto():void; | |
| export function findIconDefinition(iconLookup: IconLookup): IconDefinition; | |
| export function text(content: string, params?: TextParams): Text; | |
| export function counter(content: string | number, params?: CounterParams): Counter; |
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
| $ touch .env .eslintrcjson tsconfig.json && mkdir src && cd src && touch index.ts && cd .. |