Currently, I am in the process of transferring a project to Vue and utilizing Muuri as a layout manager. In my code, I have the following snippet:
grid.add(itemElem, {
layout: false,
active: false
});
The variable itemElem
used to be an HTML element created with document.createElement
, but now it's a component. How can I pass a component to this function?
I attempted the following:
grid.add(<MyComponent />, {
layout: false,
active: false
});
Unfortunately, this approach did not work.
It's important to note that I am using Vue3 with the options API.