![]() ![]() An enhanced command-line interfaceĪs MJML 4, the command-line interface was totally rewritten. We’ll publish a dedicated tutorial for creating your own components with MJML v4 in the coming weeks. First, there is no dependency to ReactJS anymore, but it’s also now possible to use MJML components straight into your own custom component. While the ability to create custom components has been a feature of MJML since the beginning, it just got way easier. ![]() Mj-navbar is not a section component anymore and should now be placed inside a mj-column directly ( documentation) The content of your hero component should go directly inside mj-hero ( documentation) Mj-hero-content was removed from the list of components. Each social network should now be added a child of the mj-social component ( documentation) Mj-social syntax was improved and makes it easier to add custom networks. Mj-container was removed from the list of MJML components and all of its attributes now belong tomj-body ( documentation) The syntax for various components was simplified and semantically improved: The MJML engine now supports the mj-include component, and better yet, will validate all files included, including nested includes. Validation of files included in files included in files incl… you get the point To do so, you can simply use the new dedicated head component called mj-breakpoint and specify the desired breakpoint as a value of its width attribute ( documentation). You can now easily override the default breakpoint (480px) of MJML. Multi-column layout rendering as desktop on Customizable breakpoints
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |