# @types/react-fa

> TypeScript definitions for react-fa

Latest version **4.1.11** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-fa
pnpm add @types/react-fa
yarn add @types/react-fa
bun add @types/react-fa
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.1.11 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-fa
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-fa
- npm.io page: https://npm.io/package/@types/react-fa

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 4.1.11 (latest) — 2023-11-07
- 4.1.8 (ts3.7) — 2021-10-20
- 4.1.7 (ts3.6) — 2021-07-08
- 4.1.6 (ts2.8) — 2019-02-13
- 4.1.4 (ts2.6) — 2018-02-12
- 4.1.3 (ts2.3) — 2017-08-21
- 4.1.1 (ts2.1) — 2017-01-23
- 4.1.0 (ts2.0) — 2016-12-28
- 4.1.10 — 2023-10-18
- 4.1.9 — 2023-09-27
- 4.1.5 — 2018-08-04
- 4.1.2 — 2017-06-23
- 5.0.0 — 2016-12-20
- 4.0.28 — 2016-11-14
- 4.0.27 — 2016-09-19
- … 10 more at https://npm.io/package/@types/react-fa/versions

## README

# Installation
> `npm install --save @types/react-fa`

# Summary
This package contains type definitions for react-fa (https://github.com/andreypopp/react-fa).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-fa.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-fa/index.d.ts)
````ts
import { Component, ComponentClass, FunctionComponent, HTMLProps, ReactElement } from "react";

// fake intermediate interface to remove typing on size, as the typing
// is overrided by react-fa
interface SizeOverrideHTMLProps<T> extends HTMLProps<T> {
    size?: any;
}

export type IconSize = "lg" | "2x" | "3x" | "4x" | "5x";
export type IconRotation = "45" | "90" | "135" | "180" | "225" | "270" | "315";
export type IconFlip = "horizontal" | "vertical";
export type IconStackSize = "1x" | "2x";

type CustomComponent = string | ComponentClass<any> | FunctionComponent<any>;

export interface IconProps extends SizeOverrideHTMLProps<Icon> {
    name: string;
    size?: IconSize | undefined;
    spin?: boolean | undefined;
    rotate?: IconRotation | undefined;
    flip?: IconFlip | undefined;
    fixedWidth?: boolean | undefined;
    pulse?: boolean | undefined;
    stack?: IconStackSize | undefined;
    inverse?: boolean | undefined;
    Component?: CustomComponent | undefined;
}

export type Icon = Component<IconProps>;
export const Icon: ComponentClass<IconProps>;

export interface IconStackProps extends SizeOverrideHTMLProps<IconStack> {
    size?: IconSize | undefined;
    children?: ReactElement<IconProps> | Array<ReactElement<IconProps>> | undefined;
}

export type IconStack = Component<IconStackProps>;
export const IconStack: ComponentClass<IconStackProps>;

export default Icon;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Frank Laub](https://github.com/flaub), [Pat Sissons](https://github.com/patsissons), and [Karol Janyst](https://github.com/LKay).

---
_Source: https://npm.io/package/@types/react-fa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
