fable-compiler / Fable.Lit

Write Fable Elmish apps with Lit
https://fable.io/Fable.Lit/
MIT License
91 stars 13 forks source link

Hook.useTransition with more events #76

Open leolorenzoluis opened 1 year ago

leolorenzoluis commented 1 year ago

I'm not sure if it's missing, but would it be useful to add additional event handlers on the Hook.useTransition

Currently it uses OnEntered and OnLeft.

Adding such as OnEntered, OnEntering... etc

Also, would it be more useful if the OnLeft was renamed to Exit instead to be on on par with other naming conventions by other frameworks?

What I'm trying to do is assign TailWindCss on different transitions. I'm not sure if there's a better way to do it

Maybe something like https://github.com/reactjs/react-transition-group/blob/2989b5b87b4b4d1001f21c8efa503049ffb4fe8d/stories/Transition.js#L13