Back to Mjml

README

packages/mjml-head-preview/README.md

5.1.0516 B
Original Source

mj-preview

This tag allows you to set the preview text that will be displayed in the inbox of the recipient.

xml
<mjml>
 <mj-head>
   <mj-preview>Hello MJML</mj-preview>
 </mj-head>
 <mj-body>
   <mj-section>
     <mj-column>
       <mj-text>
         Hello World!
       </mj-text>
     </mj-column>
   </mj-section>
 </mj-body>
</mjml>

mj-preview doesn't support any attributes.

<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-preview">Try it live</a></p>