Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-text

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-text

```xml <mjml> <mj-body> <mj-container> <mj-section> <mj-column> <mj-text> Hey Title! </mj-text> </mj-column> </mj-section> <mj-section> <m

  • 2.0.3-beta.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
524K
decreased by-12.03%
Maintainers
1
Weekly downloads
 
Created
Source

mjml-text

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

This tag allows you to display text in your email.

`MjText` can contain any HTML tag with any attributes. Don't forget to encode special characters to avoid unexpected behaviour from MJML's parser

sexy

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 lines22px
text-decorationstringunderline/overline/nonen/a
text-transformstringuppercase/lowercase/capitalizen/a
alignstringleft/right/centerleft
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

FAQs

Package last updated on 23 May 2016

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