A use case for this:
I have a fullscreen modal component with the props: isVisible: true | false
.
I’d love to be able to click a button (from outside the component) in the parent frame and have it trigger the modal to be visible: true
. Additionally, I’d love for it to use any animations I’ve predefined in that component for changing from variant x -> variant y
for the transition (I understand this is complicated if there are multiple triggers set up internally, but it could default to using the first or something).