Socket
Socket
Sign inDemoInstall

mjml-text

Package Overview
Dependencies
Maintainers
6
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-text

mjml-text


Version published
Weekly downloads
623K
increased by3.33%
Maintainers
6
Weekly downloads
 
Created
Source

mj-text

This tag allows you to display text in your email.

<mjml>
 <mj-body>
   <mj-section>
     <mj-column>
       <mj-text>
         <h1>
           Hey Title!
         </h1>
       </mj-text>
     </mj-column>
   </mj-section>
 </mj-body>
</mjml>

try it live

`MjText` can contain any HTML tag with any attributes. Don't forget to encode special characters to avoid unexpected behaviour from MJML's parser
attributeunitdescriptiondefault value
colorcolortext color#000000
font-familystringfontUbuntu, Helvetica, Arial, sans-serif
font-sizepxtext size13px
font-stylestringnormal/italic/obliquen/a
font-weightnumbertext thicknessn/a
line-heightpxspace between the lines1
letter-spacingpx,emletter spacingnone
heightpxThe height of the elementn/a
text-decorationstringunderline/overline/line-through/nonen/a
text-transformstringuppercase/lowercase/capitalizen/a
alignstringleft/right/center/justifyleft
container-background-colorcolorinner element background colorn/a
paddingpxsupports up to 4 parameters10px 25px
padding-toppxtop offsetn/a
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
css-classstringclass name, added to the root HTML element createdn/a

FAQs

Package last updated on 29 May 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc