@types/react-icofont
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

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

Credits

These definitions were written by Ivan Chuyko.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-icofont

Weekly Downloads

61

Version

1.0.4

License

MIT

Unpacked Size

5.39 kB

Total Files

5

Last publish

Collaborators

  • types