I have the following situation:
My page consists of several components, which all need to be shown inside some sort of modal / overlay (which I've called 'panel'). So I've made a Panel component which contains all the functionality of the panel (close, resize, move etc). Now I want to load 3-4 different components inside this panel. How would I go and do that?
I was hoping to be able to do something like this:
<Panel>
<Component1></Component1>
</Panel>
<Panel>
<Component2></Component2>
</Panel>
<Panel>
<Component3></Component3>
</Panel>
But that doesn't work. So I was thinking I should somehow pass my custom components to my panel components, but I couldn't figure out how to do so..
Anyone have an idea? Thanks!