Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 769 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 769 Bytes

purescript-halogen-transition

CircleCI

Works with Halogen 5 rc.4.

See a demo.

How to use

Please check examples folder. The basic idea is passing a render function to Transition.component.

import Halogen.Transition as Transition

render state =
    HH.slot _transition unit Transition.component
    { enterClass: "simple-enter"
    , enterActiveClass: "simple-enter-active"
    , leaveClass: "simple-leave"
    , leaveActiveClass: "simple-leave-active"
    , shown: state.shown
    , render: HH.text "hello world!"
    } $ const Nothing