How can I create a responsive button in Figma that adjusts its width based on the text length?

To create a responsive button in Figma:

  1. Use Auto Layout by selecting your text layer and pressing Shift + A.
  2. Adjust padding around the text to define the button’s size.
  3. Add a fill and customize the button’s appearance as needed.
  4. The button will now automatically adjust its width based on the length of the text.