Module
React.Transition
- Package
- purescript-react-transition-group-2
- Repository
- athanclark/purescript-react-transition-group-2
#TransitionProps Source
type TransitionProps r = (addEndListener :: EffectFn2 EventTarget EventListener Unit, appear :: Boolean, enter :: Boolean, exit :: Boolean, in :: Boolean, mountOnEnter :: Boolean, onEnter :: EnterEventHandler, onEntered :: EnterEventHandler, onEntering :: EnterEventHandler, onExit :: ExitEventHandler, onExited :: ExitEventHandler, onExiting :: ExitEventHandler, timeout :: Timeout, unmountOnExit :: Boolean | r)
#Timeout Source
type Timeout = { "enter?" :: Milliseconds, "exit?" :: Milliseconds }
#timeoutAll Source
timeoutAll :: Milliseconds -> Timeout
#enterEventHandler Source
enterEventHandler :: (HTMLElement -> Boolean -> Effect Unit) -> EnterEventHandler
#ExitEventHandler Source
type ExitEventHandler = EffectFn1 HTMLElement Unit
#exitEventHandler Source
exitEventHandler :: (HTMLElement -> Effect Unit) -> ExitEventHandler
#transition Source
transition :: forall o. SubRow o (TransitionProps + ()) => Record o -> Array ReactElement -> ReactElement