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

mjml-carousel

Package Overview
Dependencies
Maintainers
6
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-carousel

mjml-carousel

  • 4.15.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
555K
decreased by-18.36%
Maintainers
6
Weekly downloads
 
Created
Source

desktop

mj-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

`mj-carousel-image` is an "ending tag", which means it can contain HTML code which will be left as it is, so it can contain HTML tags with attributes, but it cannot contain other MJML components. More information about ending tags in this section.
attributeunitdescriptiondefault value
alignstringhorizontal alignmentcenter
container-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://i.imgur.com/xTh3hln.png
right-iconurlicon on the right of the main imagehttps://i.imgur.com/os7o9kz.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 description''
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 05 Feb 2024

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