0.2.0 • Published 7 months ago

vue-letter v0.2.0

Weekly downloads
1
License
BSD-3-Clause-Clea...
Repository
github
Last release
7 months ago

Vue.js port of react-letter.

Available in NPM, can be installed with yarn add vue-letter or npm install vue-letter.

Usage

<script setup>
  import { Letter } from 'vue-letter';
</script>

<template>
  <div id="app">
    <Letter html="<script>test</script> hello <h1>world</h1>" />
  </div>
</template>

Attributes

All react-letter properties are supported.

AttributeTypeDescriptionDefault
classNameStringClass name of the wrapper div.undefined
htmlStringUnsanitized e-mail HTML contents.
textStringUnsanitized e-mail text contents (fallback if html is not set or empty).
useIframeBooleanShould the HTML be wrapped in an iframe.false
iframeTitleStringIframe title, usually set to subject of the message.
rewriteExternalResourcesFunction(string) => stringThe result of this function will be used to rewrite the URLs for url(...) in CSS and src attributes in HTML.
rewriteExternalLinksFunction(string) => stringThe result of this function will be used to rewrite the URLs for href attributes in HTML.
allowedSchemasString[]List of allowed URL schemas.['http', 'https', 'mailto']
preserveCssPriorityBooleanPreserves CSS priority (!important).true
0.2.0

7 months ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago