DefinitelyTyped/react-fa/react-fa.d.ts
2016-10-26 00:29:19 +09:00

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
}