Skip to content

Commit f8e2208

Browse files
committed
add onClick and other missing props to icon component
1 parent 9112c46 commit f8e2208

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/Icon.res

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,21 @@ external make: (
1313
~swapOpacity: bool=?,
1414
~listItem: bool=?,
1515
~fixedWidth: bool=?,
16-
~flip: bool=?,
16+
~flip: [#horizontal | #vertical | #both]=?,
17+
~pull: [#right | #left]=?,
1718
~spin: bool=?,
1819
~pulse: bool=?,
1920
~rotation: int=?,
2021
~size: IconSize.t=?,
2122
~style: ReactDOM.Style.t=?,
23+
~beat: bool=?,
24+
~border: bool=?,
25+
~bounce: bool=?,
26+
~fade: bool=?,
27+
~flash: bool=?,
28+
~inverse: bool=?,
29+
~shake: bool=?,
30+
~spinPulse: bool=?,
31+
~spinReverse: bool=?,
32+
~onClick: ReactEvent.Mouse.t => unit=?,
2233
) => React.element = "FontAwesomeIcon"

src/IconSize.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ type t = [
44
| #xs
55
| #sm
66
| #lg
7+
| #xl
8+
| #"2xl"
79
| #"1x"
810
| #"2x"
911
| #"3x"
@@ -21,6 +23,8 @@ let all: array<t> = [
2123
#xs,
2224
#sm,
2325
#lg,
26+
#xl,
27+
#"2xl",
2428
#"1x",
2529
#"2x",
2630
#"3x",

0 commit comments

Comments
 (0)