Skip to content
Plugin for to relabel and automatically resize a button (or similar grouped set of layers)
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
Relabel Button.sketchplugin/Contents/Sketch Version bump Mar 7, 2019
LICENSE Upgraded from legacy format to proper bundle. Added support for symbols. Mar 6, 2017 Updated README Feb 9, 2019
Relabel Button Guidelines.sketch Updated guidelines Sketch file May 16, 2017
relabel-button-video1.png Add image file Mar 6, 2017

Relabel Button plugin for Sketch

The Relabel Button plug-in for prompts for a button's new label then applies the text, resizes the button background and repositions any other interior elements while maintaining the existing padding.


Have a look...


  • Select any group or symbol that contains a text layer and one or more other layers (dividers, icons, drop-arrows, etc)
  • Press Cmd+J and enter the new text for the button (or Cmd+Ctrl+J for right aligned resize)

That's it! The text and other objects will be updated maintaining the button's original padding and relative layout.


  • nested groups not supported
  • for symbols, elements SHOULD NOT be placed within a group
  • for symbols, child elements should have Resizing set to Pin To Corner so they do not get shrunk/stretched
  • see the Relabel Button Guidelines Sketch file for example buttons

Changing the Default Keyboard Shortcut

  1. Choose "Reveal Plugins Folder..." from Sketch's Plugins menu.
  2. Open the file "Relabel Button.sketchplugin" in a text editor.
  3. Edit the shortcut specifications in manifest.json:
"shortcut" : "command j",


Many thanks to Alexander Kudymov, who wrote the Dynamic Button plugin which I modified.

Also thanks to @fuggfuggfugg, who graciously shared useful code for manipulating symbols.


You can’t perform that action at this time.