🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-letter

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-letter

Display e-mail messages in your Vue projects.

0.2.1
latest
Source
npm
Version published
Weekly downloads
7.3K
0.77%
Maintainers
0
Weekly downloads
 
Created
Source

vue-letter

npm npm NPM

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

Keywords

vue

FAQs

Package last updated on 08 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts