Would be great to link text content with a prop

Would be great to have a feature that would let us link the text content with the prop just like we can link the image url to the component prop.

Currently, it’s possible through the slots but providing text content linking to prop open up a lot of new ways to design code components and pass dynamic data.

Are you wanting to do this in order to make multiple use of the prop?

Yes that’s the primary reason.

Another reason is the way current slot behaves in the Studio. Let’s consider an example where we register a code component that pass a “label” prop to the children slot.

The value is passed on to the Code component in Preview mode and it renders the dynamic value but in editor mode it will show “Enter some text”

image.png

image.png

Just to add more context to the above comment
CC: @yang

This would also simplify integration with existing i18n frameworks :+1: