mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
// Type definitions for react-fa v4.1.2
|
|
// Project: https://github.com/andreypopp/react-fa
|
|
// Definitions by: Frank Laub <https://github.com/flaub>, Karol Janyst <https://github.com/LKay>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../react/react.d.ts" />
|
|
|
|
declare module "react-fa" {
|
|
import { Component, ClassAttributes } from "react";
|
|
|
|
type IconSize = "lg" | "2x" | "3x" | "4x" | "5x"
|
|
|
|
interface IconProps extends ClassAttributes<Icon> {
|
|
name: string
|
|
className?: string
|
|
size?: IconSize
|
|
rotate?: "45" | "90" | "135" | "180" | "225" | "270" | "315"
|
|
flip?: "horizontal" | "vertical"
|
|
fixedWidth?: boolean
|
|
spin?: boolean
|
|
pulse?: boolean
|
|
stack?: "1x" | "2x"
|
|
inverse?: boolean
|
|
Component?: string | Function
|
|
}
|
|
export class Icon extends Component<IconProps, {}> {}
|
|
|
|
interface IconStackProps extends ClassAttributes<IconStack> {
|
|
className?: string
|
|
size?: IconSize
|
|
}
|
|
export class IconStack extends Component<IconStackProps, {}> {}
|
|
|
|
export default Icon
|
|
}
|