mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
37 lines
1017 B
TypeScript
37 lines
1017 B
TypeScript
// Type definitions for react-fontawesome 1.5.0
|
|
// Project: https://github.com/danawoodman/react-fontawesome
|
|
// Definitions by: Timur Rustamov <https://github.com/timurrustamov>, Anton Kandybo <https://github.com/dublicator>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
declare module "react-fontawesome" {
|
|
|
|
//Import react
|
|
import React = require('react');
|
|
|
|
type FontAwesomeSize = 'lg' | '2x' | '3x' | '4x' | '5x';
|
|
type FontAwesomeStack = "1x" | "2x";
|
|
type FontAwesomeFlip = "horizontal" | "vertical";
|
|
|
|
interface FontAwesomeProps {
|
|
ariaLabel?: string,
|
|
border?: boolean,
|
|
className?: string,
|
|
cssModule?: any,
|
|
fixedWidth?: boolean,
|
|
flip?: FontAwesomeFlip,
|
|
inverse?: boolean,
|
|
name: string,
|
|
pulse?: boolean,
|
|
rotate?: number,
|
|
size?: FontAwesomeSize,
|
|
spin?: boolean,
|
|
stack?: FontAwesomeStack,
|
|
tag?: string
|
|
}
|
|
|
|
class FontAwesome extends React.Component<FontAwesomeProps, {}> {}
|
|
|
|
export = FontAwesome;
|
|
}
|