mjml-inline-links
Standard Desktop:
Standard Mobile:
Mode hamburger enabled:
The "hamburger" feature only work on mobile device with all iOS mail client, for others mail clients the render is performed on an normal way, the links are displayed inline and the hamburger is not visible.
Getting started Try it live Templates Components Documentation
To display some links horizontally
All the attributes prefixed withico-
help to customize the hamburger icon. They only work with the hamburger mode enabled.
attribute | unit | description | default value |
---|---|---|---|
base url | string | base url for children components | n/a |
hamburger | string | activate the hamburger navigation on mobile if the value is hamburger | n/a |
align | string | align content left/center/right | center |
ico-open | ASCII code decimal | char code for a custom open icon (hamburger mode required) | 9776 |
ico-close | ASCII code decimal | char code for a custom close icon (hamburger mode required) | 8855 |
ico-padding | px | hamburger icon padding, supports up to 4 parameters (hamburger mode required) | 10px |
ico-padding-top | px | hamburger icon top offset (hamburger mode required) | 10px |
ico-padding-right | px | hamburger icon right offset (hamburger mode required) | 10px |
ico-padding-bottom | px | hamburger icon bottom offset (hamburger mode required) | 10px |
ico-padding-left | px | hamburger icon left offset (hamburger mode required) | 10px |
ico-align | string | hamburger icon alignment, left/center/right (hamburger mode required) | center |
ico-color | color format | hamburger icon color (hamburger mode required) | #000000 |
ico-font-size | px | hamburger icon size (hamburger mode required) | Ubuntu, Helvetica, Arial, sans-serif |
ico-font-family | string | hamburger icon font (only on hamburger mode) | 30px |
ico-text-transform | string | hamburger icon text transformation none/capitalize/uppercase/lowercase (hamburger mode required) | none |
ico-text-decoration | string | hamburger icon text decoration none/underline/overline/line-through (hamburger mode required) | none |
ico-line-height | px | hamburger icon line height (hamburger mode required) | 30px |