-
Notifications
You must be signed in to change notification settings - Fork 265
/
index.d.ts
53 lines (49 loc) · 1.34 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/// <reference types="react" />
import { CSSProperties, SVGAttributes, RefAttributes } from 'react'
import {
Transform,
IconProp,
FlipProp,
SizeProp,
PullProp,
RotateProp,
FaSymbol
} from '@fortawesome/fontawesome-svg-core'
export function FontAwesomeIcon(props: FontAwesomeIconProps): JSX.Element
/**
* @deprecated use FontAwesomeIconProps
*/
export type Props = FontAwesomeIconProps
// This is identical to the version of Omit in Typescript 3.5. It is included for compatibility with older versions of Typescript.
type BackwardCompatibleOmit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
export interface FontAwesomeIconProps extends BackwardCompatibleOmit<SVGAttributes<SVGSVGElement>, 'children' | 'mask' | 'transform'>, RefAttributes<SVGSVGElement> {
icon: IconProp
mask?: IconProp
maskId?: string
className?: string
color?: string
spin?: boolean
spinPulse?: boolean
spinReverse?: boolean
pulse?: boolean
beat?: boolean
fade?: boolean
beatFade?: boolean
bounce?: boolean
shake?: boolean
border?: boolean
fixedWidth?: boolean
inverse?: boolean
listItem?: boolean
flip?: FlipProp
size?: SizeProp
pull?: PullProp
rotation?: RotateProp
transform?: string | Transform
symbol?: FaSymbol
style?: CSSProperties
tabIndex?: number;
title?: string;
titleId?: string;
swapOpacity?: boolean;
}