Hi, im trying to make a “smart component” which would auto resize based on the length of a text label, as well as resize other elements in the components.
i can successfully create a component with a text label which would automatically resize the frame/component based the length of the text, aka how you would make a normal make a dynamic button component by styling the parent frame, but for flexibility reasons i need the background of the button to be a separate component, that i can change and the effect will take effect multiple places, but i can’t seem to make this work with the ‘vanilla’ version of Figma, and would therefore like to ask if anyone out there have suggestions on how to achieve this, perhaps another layout plugin to assist, could point to related topics (already googled without much success).
YES :D… that did it, the key was absolute, i constantly got stuck in “auto layout” forcing elements to be positioned side by side, i wish this was a bit more logical, but at least it’s following logic’ish from css :D.
thank you all for the quick replies.
Old post, but I am facing the same problem. The solution here says: “set the absolute position for the bag layer” – how do you set an absolute position in Figma?