New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

mjml-carousel

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-carousel

mjml-carousel

4.2.1
Version published
Weekly downloads
771K
2.97%
Maintainers
5
Weekly downloads
 
Created

desktop

mjml-carousel 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-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-body>
</mjml>

sexy

attributeunitdescriptiondefault value
alignstringhorizontal alignmentcenter
background-colorstringcolumn background colornone
border-radiuspxborder radiusn/a
css-classstringclass name, added to the root HTML element createdn/a
icon-widthpxwidth of the icons on left and right of the main image44px
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
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
thumbnailsStringdisplay or not the thumbnails (visiblehidden)

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

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

FAQs

Package last updated on 22 Nov 2018

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