# @types/react-icofont

> TypeScript definitions for react-icofont

Latest version **1.0.4** (published 2025-01-28) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2025-01-28 |
| First published | 2019-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.4 (latest) — 2025-01-28
- 1.0.3 (ts4.5) — 2023-11-07
- 1.0.1 (ts3.6) — 2021-07-08
- 1.0.0 (ts2.8) — 2019-09-24
- 1.0.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/react-icofont`

# Summary
This package contains type definitions for react-icofont (https://www.npmjs.com/package/react-icofont).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-icofont.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-icofont/index.d.ts)
````ts
import * as React from "react";

declare namespace Icofont {
    interface IcofontProps extends Partial<React.JSX.IntrinsicElements["i"]> {
        /**
         * Any valid icon name from the icofont website (https://icofont.com/icons).
         * Guess what, if you copy the class name that includes the prefix (icofont-), it will also work fine.
         */
        icon: string;

        /**
         * Currently rotate angles `90`, `180`, `270` values are supported.
         * The rotate angle values are in degree.
         */
        rotate?: "90" | "180" | "270" | undefined;

        /**
         * `horizontal` or `h` and `vertical` or `v`.
         * You can also do, flip="h v" or flip="horizontal vertical" for flipping both horizontally and vertically.
         */
        flip?: "h" | "horizontal" | "v" | "vertical" | "h v" | "horizontal vertical" | undefined;

        /**
         * Size can have value from 1 to 10.
         * For example, setting size="2" will make the icon twice as big.
         */
        size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | undefined;

        /**
         * In the case of true value, the icon will spin endlessly. You can spin any icon.
         */
        spin?: boolean | undefined;
    }
}

declare class Icofont extends React.Component<Icofont.IcofontProps> {}

export = Icofont;

````

### Additional Details
 * Last updated: Tue, 28 Jan 2025 11:02:22 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Ivan Chuyko](https://github.com/ichuyko).

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