Closed
Description
Hey, part of the rewrite for show/hide PR I got to think about those props.
They don't all work the same way, so I'd like to define how they should work, so that I can make all them coherent.
My proposal:
- If modelValue is true, we animete the element in. (of course no animation if that prop is set)
- toggle is true -> in onMount we set modelValue to true and animate
- visible is true -> we set modelValue true and display the component without animation (as it would have been open already)
visible takes priority over toggle. Both props are reactive and act as described when changed.
@VividLemon @dwgray thoughts? few of the components (collapse ie) already work like this.