Skip to main content
Piotr Niklas
New Member
Feb 9, 2025 3:42 PM UTC
Question

Button Auto layout problem

Hey there!

I’m trying to create a resizable button component. Along with text, I’d like to nest an additional resizable component as a background. Now, I know I could simply generate fill and stroke color in this example, but that’s not the case. How can I make the rectangular component resize itself along with the text on top of it? Thanks!

 

This topic has been closed for replies.

5 replies

tank666
Feb 9, 2025 3:57 PM UTC

 

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Piotr Niklas
New Member
Feb 9, 2025 7:24 PM UTC

Thanks, but I’ve actually seen that answer, but it doesn’t work. Please refer to my image above.

tank666
Feb 9, 2025 7:54 PM UTC

It doesn't work for you because you didn't complete step 3.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Piotr Niklas
New Member
Feb 10, 2025 9:40 AM UTC

Oh I tried different options, but this doesn’t change anything….

tank666
Feb 10, 2025 10:08 AM UTC

Now follow step 4.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank