-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
Is your feature request related to a problem? Please describe.
This isn't really related to a problem, curious if there is any plan in the roadmap to implement the ability to add transitions of some sort? I am currently trying to implement Framer Motion to animate the transition between steps and it appears its not possible without some changes to Formiz.
Describe the solution you'd like
After looking through the docs and messing with code, you can only pass a string in the as
prop on the formizStep
component. I've tried passing a component to the as
prop to no avail. It would be nice to be able to do something like the following to accomplish this:
<FormizStep
name={step.cardTitle}
isEnabled={checkStepConditional(step)}
as={
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
/>
}
>
...