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

mjml-carousel

Package Overview
Dependencies
Maintainers
4
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-carousel

mjml-carousel

  • 3.3.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

desktop

mjml-carousel is the first MJML interactive component, it displays a gallery of images or "carousel". Readers can interact by hovering and clicking on thumbnails depending on the email client they use.

This component enables you to set the styles of the carousel elements.

<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column>
          <mj-carousel>
            <mj-carousel-image src="https://www.mailjet.com/wp-content/uploads/2016/11/ecommerce-guide.jpg" />
            <mj-carousel-image src="https://www.mailjet.com/wp-content/uploads/2016/09/3@1x.png" />
            <mj-carousel-image src="https://www.mailjet.com/wp-content/uploads/2016/09/1@1x.png" />
          </mj-carousel>
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

sexy

attributeunitdescriptiondefault value
alignstringhorizontal alignmentcenter
border-radiuspxborder radiusn/a
background-colorstringcolumn background colornone
thumbnailsStringdisplay or not the thumbnails (visiblehidden)
tb-bordercss border formatborder of the thumbnailsnone
tb-border-radiuspxborder-radius of the thumbnailsnone
tb-hover-border-colorstringcss border color of the hovered thumbnailnone
tb-selected-border-colorstringcss border color of the selected thumbnailnone
tb-widthpxthumbnail widthnull
left-iconurlicon on the left of the main imagehttps://mjml.io/assets/img/left-arrow.png
right-iconurlicon on the right of the main imagehttps://mjml.io/assets/img/right-arrow.png
icon-widthpxwidth of the icons on left and right of the main image44px
css-classstringclass name, added to the root HTML element createdn/a

This component enables you to add and style the images in the carousel.

attributeunitdescriptiondefault value
srcurlimage sourcen/a
thumbnails-srcurlimage source to have a thumbnail different than the image it's linked tonull
hrefurllink to redirect to on clickn/a
relstringspecify the rel attributen/a
altstringimage descriptionn/a
titlestringtooltip & accessibilityn/a
css-classstringclass name, added to the root HTML element createdn/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