How To Undo A Main Component

Newbie Penpot user here.

I just created a new component by right-clicking on a board with nested layers and then selecting ‘Create Component’ from the resulting context menu. At this point, I have a main component but I have not created a new instance of this component.

I now want to undo this new main component, meaning that I want the component to revert back to just the original board with nested layers. When I right-click on the new component, there doesn’t seem to be an option there to undo the component.

What I can do is duplicate the main, detach the new instance from the main, leaving me with the board that I started with, and then delete the main. But I was wondering if there was a simpler way to achieve this.

ty
/joselito

Hiya! So you can’t break a component unless you control + Z it. Just create a new instance, detach that instance, and use that as the next potential component. Delete the previous main and you’ll have no conflicts. Does that help?

Thanks for responding, @Nathan_R, but I did mention that the only way I could revert the component back to its parts was to do what you suggested: dup the component, detach the dup-ed component, and delete the original component.

But this approach seems so costly in user actions particularly if you’ve got a lot of components to undo. I was wondering if there was a technical reason why there was no ‘undo component’ action.

I see what you mean. I think that’s actually the standard across most UX-tools right now but I agree that it would be nice to deliberately “break” a main component so you don’t have to go through the dup process.

1 Like