code-connect
code-connect copied to clipboard
Add support for wildcard selector in figma.children with array
Describe the feature you'd like:
I have a use case where I'm dynamically rendering the children of my Figma component in the generated code connect snippet using figma.children.
My component has several nested children called 'Section 1', 'Section 2' etc and in addition several children called Divider.
While I can get all these similarly named children (plus some additional ones) with figma.children('Section 1', 'Section 2', 'Section 3', 'Divider'), for ease of use it would preferable to use figma.children('Section*', 'Divider').
That way if the Figma component is updated in the future to have a different number of 'Section' children the code connect snippet will not break.