Create a button that resizes based on the text inside - XD 26

You just received instructions from your client asking to rename all buttons with the text “SUBMIT” in them to “CLICK HERE FOR LAUGHS”. You aren’t too pleased because it is the weekend and there’s a party you cannot miss.
In this case at least, you have room for cheer. With a few simple steps, you can now create a button that resizes itself based on the text inside. Just in case your client has a quick change of heart (and mind), you will still party.
Let’s get started.
- Create a rectangle that will be the container for your text.
- Type “SUBMIT” using the Text Tool.
- Drag the Text into the rectangle and position it. Don’t worry about the exact padding.
- Now, select the objects and use Ctrl+G/Cmd+G to group the objects.
- In the Properties Inspector panel, enable the Padding option.
- Ensuring that the layer for text is selected, change text to “CLICK HERE FOR LAUGHS”

Did the rectangle resize? Good.
Now that you are a pro at creating magic buttons, look at all the padding options and play around with them. See https://helpx.adobe.com/xd/help/set-fixed-padding-for-components-groups.html for more info and for the download file.

