Socket
Book a DemoInstallSign in
Socket

@ecomailcz/mjml-head-attributes

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecomailcz/mjml-head-attributes

@ecomailcz/mjml-head-attributes

latest
Source
npmnpm
Version
4.4.0-ecm-28
Version published
Maintainers
2
Created
Source

mjml-attributes

This tag allows you to modify default attributes on a mj-tag and add mj-class to them.

<mjml>
 <mj-head>
   <mj-attributes>
     <mj-text padding="0" />
     <mj-class name="blue" color="blue" />
     <mj-class name="big" font-size="20px" />
     <mj-all font-family="Arial" />
   </mj-attributes>
 </mj-head>
 <mj-body>
   <mj-section>
     <mj-column>
       <mj-text mj-class="blue big">
         Hello World!
       </mj-text>
     </mj-column>
   </mj-section>
 </mj-body>
</mjml>

try it live

You can use mj-all to set default attributes for every components inside your MJML document Note that the apply order of attributes is: inline attributes, then classes, then default mj-attributes and then defaultMJMLDefinition

FAQs

Package last updated on 27 May 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