penpot / penpot

Penpot: The open-source design tool for design and code collaboration
https://penpot.app
Mozilla Public License 2.0
32.3k stars 1.61k forks source link

feature: permit to add objects into a instanced component #4631

Open henri9813 opened 3 months ago

henri9813 commented 3 months ago

Is your feature request related to a problem? Please describe.

Hello,

I try to build a component called: Card.

This card has a header, and a CONTENT ( which is a workspace in flex mode or grid, I tried both ).

When I instantiate the component, I'm not able to add items ( components, text, or shapes ) into the CONTENT workspace.

The only solution is to detach the component, but If I do this, I lose the advantage to use a component and the maintenance will be insane.

I tried this: https://community.penpot.app/t/is-it-possible-to-have-container-components/5406 but it doesn't works as expected.

Describe the solution you'd like.

I would like to be able to add items inside the container of my component.

Describe alternatives you've considered.

No alternative.

Additional context

No response

henri9813 commented 3 months ago

Sometimes, when I drag and drop items, it's included in a component, but I don't know why because I don't put it in the component.

After this, I can't delete anymore my items ( I'm obligated to do undo )...

image
madalenapmelo-kp commented 3 months ago

Hi @henri9813,

Thanks for the suggestion! I have added this to our backlog on Taiga so that we can explore this option in the future, you can find the details here: https://tree.taiga.io/project/penpot/issue/7989

hirunatan commented 1 month ago

This is not possible for now as you ask. The current approach is to make components with all the pieces you want to change in copies, and then use the swap function.

There is an US planned for a more flexible mechanism, but it's not yet included in plans for the near future: https://tree.taiga.io/project/penpot/us/8077