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

mjml-navbar

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-navbar

mjml-navbar

  • 3.3.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

mjml-navbar

Displays a menu for navigation with an optional hamburger mode for mobile devices.

<mjml>
  <mj-body>
    <mj-container>
      <mj-navbar background-color="#ef6451">
        <mj-column width="20%">
          <mj-image width="150px" src="https://mjml.io/assets/img/logo-white-small.png"></mj-image>
        </mj-column>
        <mj-column width="80%">
          <mj-inline-links base-url="https://mjml.io" hamburger="hamburger" ico-color="#ffffff">
            <mj-link href="/gettings-started-onboard" color="#ffffff">Getting started</mj-link>
            <mj-link href="/try-it-live" color="#ffffff">Try it live</mj-link>
            <mj-link href="/templates" color="#ffffff">Templates</mj-link>
            <mj-link href="/components" color="#ffffff">Components</mj-link>
          </mj-inline-links>
        </mj-column>
      </mj-navbar>
    </mj-container>
  </mj-body>
</mjml>

sexy

attributeunitdescriptiondefault value
full-widthstringmake the section full-widthn/a
borderstringcss border formatnone
border-bottomstringcss border formatn/a
border-leftstringcss border formatn/a
border-rightstringcss border formatn/a
border-topstringcss border formatn/a
border-radiuspxborder radiusn/a
background-colorcolorsection colorn/a
background-urlurlbackground urln/a
background-repeatstringcss background repeatrepeat
background-sizepercent/pxcss background sizeauto
vertical-alignstringcss vertical-aligntop
text-alignstringcss text-aligncenter
paddingpxsupports up to 4 parameters10px 25px
padding-toppxsection top offsetn/a
padding-bottompxsection bottom offsetn/a
padding-leftpxsection left offsetn/a
padding-rightpxsection right offsetn/a
css-classstringclass name, added to the root HTML element createdn/a

Individual links of the menu should we wrapped inside mj-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. All the attributes prefixed with ico- help to customize the hamburger icon. They only work with the hamburger mode enabled.
attributeunitdescriptiondefault value
base urlstringbase url for children componentsn/a
hamburgerstringactivate the hamburger navigation on mobile if the value is hamburgern/a
alignstringalign content left/center/rightcenter
ico-openASCII code decimalchar code for a custom open icon (hamburger mode required)9776
ico-closeASCII code decimalchar code for a custom close icon (hamburger mode required)8855
ico-paddingpxhamburger icon padding, supports up to 4 parameters (hamburger mode required)10px
ico-padding-toppxhamburger icon top offset (hamburger mode required)10px
ico-padding-rightpxhamburger icon right offset (hamburger mode required)10px
ico-padding-bottompxhamburger icon bottom offset (hamburger mode required)10px
ico-padding-leftpxhamburger icon left offset (hamburger mode required)10px
ico-alignstringhamburger icon alignment, left/center/right (hamburger mode required)center
ico-colorcolor formathamburger icon color (hamburger mode required)#000000
ico-font-sizepxhamburger icon size (hamburger mode required)30px
ico-font-familystringhamburger icon font (only on hamburger mode)Ubuntu, Helvetica, Arial, sans-serif
ico-text-transformstringhamburger icon text transformation none/capitalize/uppercase/lowercase (hamburger mode required)none
ico-text-decorationstringhamburger icon text decoration none/underline/overline/line-through (hamburger mode required)none
ico-line-heightpxhamburger icon line height (hamburger mode required)30px

This component should be used to display an individual link in the navbar.

The mj-link component must be used inside a mj-inline-links component only.
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-transformstringcapitalize/uppercase/lowercase/noneuppercase
paddingpxsupports up to 4 parameters10px 25px
padding-toppxtop offsetn/a
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
relstringspecify the rel attributen/a

FAQs

Package last updated on 25 Sep 2017

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