More Component Property Settings (e.g. Instance Swap, Text)

Currently, the only way to change text or swap a nested component inside an instance is to manually drill down and select the specific child layer. With detailed components this quickly becomes slow and error-prone. It also makes handoffs harder: when I share components with someone who builds the final wireframes, they have to dig through the layer structure to find what they’re allowed to edit.

Proposed solution
Allow designers to link properties on the main component to specific child layers. These properties would then appear in the design panel whenever an instance is selected. Useful property types would be:

  • Text property: edit the content of a linked text layer directly from the panel
  • Instance swap property: replace a nested component (e.g. an icon) with another one from the library

Benefits

  • Change icons, labels and other content with a single click instead of navigating the layer tree
  • Clearer handoffs: the component author defines exactly what can be customised, so others can use components correctly without knowing their internal structure
  • Fewer accidental changes to layers that shouldn’t be edited

Reference
Figma offers these property types (text, instance swap, boolean) alongside variants, which makes quick edits and handoffs much easier. Having the same in Penpot would complement the existing variants feature and make component-based workflows significantly faster.


I already saw some other Threads about this topic:

1 Like