forked from FortAwesome/react-fontawesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
44 lines (40 loc) · 1.11 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
/// <reference types="react" />
import { CSSProperties, DOMAttributes } 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<DOMAttributes<SVGSVGElement>, 'children' | 'mask'> {
icon: IconProp
mask?: IconProp
className?: string
color?: string
spin?: boolean
pulse?: 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;
swapOpacity?: boolean;
}