Skip to content

wiz-utility-button

wiz-utility-button is a customizable button component for using in layouts that require responsive buttons with both textual and icon-based elements. It supports various button types (Zoom, Download, Video, etc.) dynamically switching between different icons and label texts based on the selected type or custom inputs.

Usage

Markup:

vue
 <wiz-utility-button :text="$t('text')" button-type="video" text-position="left" width="auto" align="center" link="https://viseven.com/" icon-src="public/images/icon.png"></wiz-utility-button>

Localization:

vue
<i18n>
    {
        "en": {
              "text": "Play"
        }
    }
</i18n>

Properties


The following properties are available:
PropertyTypeDefault valueDescription
alignstringcenterButton alignment on the email layout. One of: "center", "left", "right".
buttonTypestringzoomThe required button type. One of: "zoom", "download", "video", "presentation", "audio"
iconSrcstringN/AA custom icon source URL. When empty, the default icon button is used.
linkstringhttps://visesen.com/A target URL the button redirects to.
textstringN/AThe button text. When empty, the default text for the specified "buttonType" is used.
textPositionstringrightThe position of the button text. Oneof: "right", "left"
widthnumberautoThe button width in percent. "auto" allowed.