Make an object containing your structure (a kind of tree). Then make a component to render that using QCollapsible. Have a read at this https://vuejs.org/v2/guide/components.html#Recursive-Components