Installation
npm install --save @types/react-fontawesome
Summary
This package contains type definitions for react-fontawesome (https://github.com/danawoodman/react-fontawesome).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-fontawesome.
index.d.ts
import * as React from "react";
export = FontAwesome;
interface Intermediate extends React.AllHTMLAttributes<HTMLElement> {
size?: any;
}
declare namespace FontAwesome {
type FontAwesomeSize = "lg" | "2x" | "3x" | "4x" | "5x";
type FontAwesomeStack = "1x" | "2x";
type FontAwesomeFlip = "horizontal" | "vertical";
interface FontAwesomeProps extends Intermediate {
ariaLabel?: string | undefined;
border?: boolean | undefined;
cssModule?: any;
fixedWidth?: boolean | undefined;
flip?: FontAwesomeFlip | undefined;
inverse?: boolean | undefined;
name: string;
pulse?: boolean | undefined;
rotate?: number | undefined;
size?: FontAwesomeSize | undefined;
spin?: boolean | undefined;
stack?: FontAwesomeStack | undefined;
tag?: string | undefined;
}
}
declare class FontAwesome extends React.Component<FontAwesome.FontAwesomeProps> {}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Timur Rustamov, Anton Kandybo, Vincas Stonys, and Gavin Gregory.