Skip to content

Commit e6b9e62

Browse files
committed
Add class DU case and require qualified DU case access.
1 parent 32ddd80 commit e6b9e62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Fable.React.TransitionGroup/Fable.Helpers.React.TransitionGroup.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module TransitionGroup =
1818
| [<CompiledName("exited")>] Exited
1919
| [<CompiledName("unmounted")>] Unmounted
2020

21+
[<RequireQualifiedAccess>]
2122
type TransitionProps =
2223
| In of bool
2324
| Appear of bool
@@ -34,6 +35,7 @@ module TransitionGroup =
3435
| OnExiting of (Browser.HTMLElement -> unit)
3536
| OnExited of (Browser.HTMLElement -> unit)
3637
| Children of U2<React.ReactNode, (TransitionStatus -> React.ReactNode)>
38+
| Class of string
3739
| Ref of (obj -> obj)
3840
| Key of string
3941
static member Custom(key: string, value: obj): TransitionProps =
@@ -50,6 +52,7 @@ module TransitionGroup =
5052
exitDone: string option
5153
}
5254

55+
[<RequireQualifiedAccess>]
5356
type CSSTransitionProps =
5457
| In of bool
5558
| Appear of bool
@@ -67,14 +70,17 @@ module TransitionGroup =
6770
| OnExited of (Browser.HTMLElement -> unit)
6871
| Children of U2<React.ReactNode, TransitionStatus -> React.ReactNode>
6972
| ClassNames of U2<string, CSSTransitionClassNames>
73+
| Class of string
7074
| Ref of (obj -> obj)
7175
| Key of string
7276
static member Custom(key: string, value: obj): CSSTransitionProps =
7377
unbox(key, value)
7478

79+
[<RequireQualifiedAccess>]
7580
type TransitionGroupProps =
7681
| Component of React.ReactType
7782
| ChildFactory of (React.ReactElement -> React.ReactElement)
83+
| Class of string
7884
| Ref of (obj -> obj)
7985
| Key of string
8086
static member Custom(key: string, value: obj): TransitionGroupProps =

0 commit comments

Comments
 (0)