Request details

Button tool - style text box with border, background color, padding (auto resized when text changes)

To speed workflow it would be good to have button tool in the sidebar. In the property inspector you'd have the ability to specify the top,bottom, left and right padding. the width of button would dynamically resize as you type the button's label.

711 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    pamjam shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    63 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  ·   ·  Flag as inappropriate

        I really wonder why this has not been a part of the app from the start.
        Buttons might be one of the most ubiquitous component in UI Design, and yet no design tool (except production tools such as Webflow or Xcode) offers a "button" natively in the toolbox... Quite puzzling right?

        Please, add this feature, every time I draw a button using a rectangle + text and have to manually resize it, it just hurts.

        Thanks!

      • Pank commented  ·   ·  Flag as inappropriate

        Thanks for the plugin, which is a cool workaround. :) However, the plugin doesn't work well for the buttons that are already created in the existing files.

        Dynamic buttons are very much needed in XD out of the box. In most of the cases, same button style is used with longer labels and creating different instances becomes difficult to change the style globally.
        Additionally, there are different types of buttons such as the ones with descriptive and qualifier icons, with or without background.

      • Brent B commented  ·   ·  Flag as inappropriate

        This is weird to find such an old but important request not implemented. Padding is so crucial in sketch, and now framer has an excellent implementation.

      • Cristian Carlsson commented  ·   ·  Flag as inappropriate

        Yes, this is soo needed.

        This is the only problem I have with the repeat or control pattern..

        Would be nice to be able to connect a object size with another object, Then we could set the text and rectangle to the wanted size but then "group with size" or something so they will follow each other..
        Or any other solution that is solving the problem of course :)

      • Anonymous commented  ·   ·  Flag as inappropriate

        This would be so good! It would really speed up workflow and as a UX/UI piece of software XD should really be able to do this type of function.

      • João Rodrigues commented  ·   ·  Flag as inappropriate

        As XD is not an illustration tool, but rather focused on UX/UI designers who need to build prototypes mostly for web and mobile, it would greatly help to have some sort of smart web and mobile components.

        I would expect these smart componants to be easily configured with parameters similar to CSS (like padding or border-radius) - and to behave as expected when resized (for example, increasing width of a dropdown would not change the position of text or the caret relative to the borders).

        This would greatly speed up my workflow and allow me to dispense rapid wireframing tools like balsamiq.

      • Aluko Design commented  ·   ·  Flag as inappropriate

        If you've used Paddy in Sketch, you'll know how helpful it is when creating buttons that share the same or similar style but change size based on the length of the label.

        Like the name implies you set the padding you want between the box (background) and the text (label). When you place or nest the symbol, overriding the label will adjust the width of the button based on how long or short the new label is. If it is nested 2 or 3 levels deep (a symbol within a symbol within a symbol) you can still override the label and it still resizes, something Paddy is not yet able to do in Sketch.

        None of the competitors have this feature yet, which is why I'm reluctant to jump ship despite Sketch's choppy performance. With all the UI people create its obvious that buttons are gonna be a part of this, its common sense yet, people still have to create multiple symbols. Plugins suck because if they app updates it might break, or if you're using the app on a work PC that doesn't allow for installs, you're screwed. Please add this feature. Thank you.

      • Meagan Shoots commented  ·   ·  Flag as inappropriate

        Agreed!!! Button capabilities would be better for easy workflow. Identifying general padding, font style, corner radius, colors, etc.

      • Pablo Sara commented  ·   ·  Flag as inappropriate

        This would actually be very simple if we are able to insert text into any shape and set the padding and text alignment, just like on Indesign and Illustrator

      • joe commented  ·   ·  Flag as inappropriate

        It would be really beneficial if you could add a background color to a text.

      • Matza commented  ·   ·  Flag as inappropriate

        Symbol overrides are ok, but the button-width and height stay the same and has to be adapted by hand. Also longer texts (button labels)

      • Kevin Quaedvlieg commented  ·   ·  Flag as inappropriate

        There should be a option where you could click on some text to make that a button. With this option you could choose the background color, the padding, drop-shadow and the border-radius. This suggestion can be really handy to easily create a button without having to deal with margins that are not correct. Also maybe an option should be to add this as a asset so you can quickly apply this button style.

      ← Previous 1 3 4

      Feedback and Knowledge Base