Button

Content blocks

Button

A call-to-action button rendered with bulletproof table markup.

Options#

  • Label text and destination URL
  • Background and text color, border radius, border
  • Padding (inner) and alignment
  • Full-width toggle
  • Optional hover colors (shown in Gmail on the web and Apple Mail; other apps keep the normal colors)

Values and defaults

A new button starts with label: "Shop now", background_color: "#ef476f", color: "#ffffff", border_radius: 999 (a pill), font_size: 16, font_weight: "600", 14px padding top and bottom, 22px left and right, align: "left" and auto_width: true. With auto_width: false the button is width percent of the column (default 40). align: "justify" makes it full width.

Link types

  • open-website (the default) uses href as written.
  • send-email adds mailto: when it is missing.
  • call-phone removes spaces and adds tel:.
  • unsubscribe and view-in-browser always export {{unsubscribe_url}} and {{web_version_url}}; a URL typed in href is ignored. See special links.

In email clients

Outlook on Windows ignores padding and rounded corners on links, so the export adds a VML rounded rectangle that only Outlook reads. Document and AMP output leave it out. On phones the button fills the column unless mobile_full_width is false. Pre-send QA warns about an empty label, a placeholder link and text contrast below 4.5:1.