npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mjml-navbar

v4.18.0

Published

mjml-navbar

Downloads

3,909,175

Readme

mj-navbar

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

<mjml>
  <mj-body>
    <mj-section background-color="#ef6451">
      <mj-column>
        <mj-navbar base-url="https://mjml.io" hamburger="hamburger" ico-color="#ffffff">
            <mj-navbar-link href="/gettings-started-onboard" color="#ffffff">Getting started</mj-navbar-link>
            <mj-navbar-link href="/try-it-live" color="#ffffff">Try it live</mj-navbar-link>
            <mj-navbar-link href="/templates" color="#ffffff">Templates</mj-navbar-link>
            <mj-navbar-link href="/components" color="#ffffff">Components</mj-navbar-link>
        </mj-navbar>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

Attributes

| attribute | accepts | description | default value | | ------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | | align | leftcenterright | align content | center | | base-url | string | base URL for child components | null | | css-class | string | class name, added to the root HTML element created | | | hamburger | string | activate the hamburger navigation on mobile if the value is hamburger | null | | ico-align | leftcenterright | hamburger icon alignment (hamburger="hamburger" required) | center | | ico-close | string | char code for a custom close icon, e.g. ASCII code decimal (hamburger="hamburger" required) | &#8855; | | ico-color | CSS color formats | hamburger icon color (hamburger="hamburger" required) | #000000 | | ico-font-family | string | hamburger icon font (hamburger="hamburger" required) | Ubuntu, Helvetica, Arial, sans-serif | | ico-font-size | px % | hamburger icon size (hamburger="hamburger" required) | 30px | | ico-line-height | px % | hamburger icon line height (hamburger="hamburger" required) | 30px | | ico-open | string | char code for a custom open icon, e.g. ASCII code decimal (hamburger="hamburger" required) | &#9776; | | ico-padding | px % | hamburger icon padding, supports up to 4 parameters (hamburger="hamburger" required) | 10px | | ico-padding-bottom | px % | hamburger icon bottom padding (hamburger="hamburger" required) | | | ico-padding-left | px % | hamburger icon left padding (hamburger="hamburger" required) | | | ico-padding-right | px % | hamburger icon right padding (hamburger="hamburger" required) | | | ico-padding-top | px % | hamburger icon top padding (hamburger="hamburger" required) | | | ico-text-decoration | string | hamburger icon text decoration e.g. none underline overline line-through (hamburger="hamburger" required) | none | | ico-text-transform | string | hamburger icon text transformation none capitalize uppercase lowercase (hamburger="hamburger" required) | uppercase | | padding | px % | navbar padding, supports up to 4 parameters | | | padding-bottom | px % | navbar bottom padding | | | padding-left | px % | navbar left padding | | | padding-right | px % | navbar right padding | | | padding-top | px % | navbar top padding | |

mj-navbar-link

Used to display an individual link in the navbar. Individual links of the menu should be wrapped inside mj-navbar.

Attributes

| attribute | accepts | description | default value | | --------------- | ----------------- | ------------------------------------------------------------ | -------------------------------------- | | color | CSS color formats | text color | #000000 | | css-class | string | class name, added to the root HTML element created | | | font-family | string | font | Ubuntu, Helvetica, Arial, sans-serif | | font-size | px | text size | 13px | | font-style | string | CSS values, i.e. normal italic oblique | | | font-weight | string | text thickness | | | href | string | link to redirect to on click, in URL format | | | letter-spacing | px em | letter-spacing | | | line-height | px % | space between the lines | 22px | | name | string | specify the link name attribute | | | padding | px % | navbar link padding, supports up to 4 parameters | 15px 10px | | padding-bottom | px % | bottom padding | | | padding-left | px % | left padding | | | padding-right | px % | right padding | | | padding-top | px % | top padding | | | rel | string | specify the rel attribute | | | target | string | link target on click | | | text-decoration | string | CSS values, i.e. underline overline none | none | | text-transform | string | CSS values, i.e. capitalize uppercase lowercase none | uppercase |