Skip to content

wiz-plain-button

wiz-plain-button is a customizable Vue.js component designed for rendering buttons with dynamic text, links, alignment, and background colors. You can use it in responsive layouts. This component automatically handles browser-specific adjustments and rendering in different email clients.

Usage

Markup:

vue
<wiz-plain-button></wiz-plain-button>

To provide fully custom content inside the button, use the default slot:

vue
<wiz-plain-button>
  <a href="https://example.com" style="color: white; text-decoration: none; padding: 10px 20px; background-color: #28A745; border-radius: 5px;">
    Click me!
  </a>
</wiz-plain-button>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
alignstringN/AButton alignment on the email layout. One of: "center", "left", "right".
backgroundColorstringN/ABackground color of the button. Allowed: HEX, RGB, RGBA.
backgroundSelectorstring"a[href]"CSS selector for styling the button's background. Allows custom DOM traversal.
linkstringN/AA target URL the button redirects to.
linkSelectorstring"a[href]"CSS selector for the button's link. Allows custom DOM traversal for advanced use cases.
textstringN/AThe text to display inside the button.
textSelectorstring"a[href]"CSS selector for the button's text. Allows custom DOM traversal for advanced use cases.