Skip to content

wiz-block

Use the wiz-block component to add blocks to your email.

For more information, see Blocks in eWizard.js projects and Blocks and modules in eWizard.

Usage

To add the wiz-block component to your email and change its properties, in the App.vue file:

  1. Add the <wiz-block></wiz-block> tag to your email template.

    html
    <!--./App.vue -->
    
    <template>
      <wiz-root align="center" style="background: #ffffff; width: 700px;">
        <wiz-block></wiz-block>
      </wiz-root>
    </template>
  2. Insert other components inside the <wiz-block></wiz-block> tag. For example, wiz-text:

    html
    <!--./App.vue -->
    
    <template>
      <wiz-root align="center" style="background: #ffffff; width: 700px;">
        <wiz-block>
          <wiz-text :text="$t('text_3')"></wiz-text>
        </wiz-block>
      </wiz-root>
    </template>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
alignstringcenterThe block alignment on the email layout. One of: "center", "left", "right".
contentAlignstringcenterBlock content alignment within the component. One of: "center", "left", "right".