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

mjml-accordion

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-accordion

mjml-accordion

  • 3.3.0-beta.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

mjml-accordion

accordion

mjml-accordion is an interactive MJML component to stack content in tabs, so the information is collapsed and only the titles are visible. Readers can interact by clicking on the tabs to reveal the content, providing a great experience on mobile devices where space is scarce.

<mjml>
  <mj-head>
    <mj-attributes>
      <mj-accordion-title font-size="18px" font-family="Helvetica"/>
      <mj-accordion-text font-size="14px" font-family="Helvetica" />
    </mj-attributes>
  </mj-head>
  <mj-body>
    <mj-container background-color="#fbfbfb">
      <mj-section>
        <mj-column background-color="#dfdfdf">
          <mj-accordion border="1px solid blue">
            <mj-accordion-element icon-position="left" icon-wrapped-url="https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/More-128.png" icon-unwrapped-url="https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Less-128.png">
              <mj-accordion-title background-color="#dedede" color="#333333">To the left, to the left</mj-accordion-title>
              <mj-accordion-text background-color="#333333" color="#dedede">Isn't this content neat?</mj-accordion-text>
            </mj-accordion-element>
            <mj-accordion-element icon-position="right" icon-wrapped-url="https://cdn2.iconfinder.com/data/icons/ios-7-icons/50/down4-512.png" icon-unwrapped-url="https://cdn2.iconfinder.com/data/icons/ios-7-icons/50/up4-512.png">
              <mj-accordion-title background-color="#dedeff" color="#444488">To the right, to the right</mj-accordion-title>
              <mj-accordion-text background-color="#444488" color="#dedeff">What about this content?</mj-accordion-text>
            </mj-accordion-element>
          </mj-accordion>
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

sexy

Every attribute in `mj-accordion` are applied to `mj-accordion-element` unless you overide them on `mj-accordion-element`
attributeunitdescriptiondefault value
container-background-colorn/abackground-color of the celln/a,
bordern/abordern/a
font-familyn/afontUbuntu, Helvetica, Arial, sans-serif
icon-alignn/aicon alignmentmiddle
icon-wrapped-urln/aicon when accordion is wrappedhttp://i.imgur.com/bIXv1bk.png
icon-wrapped-altn/aalt text when accordion is wrapped+
icon-unwrapped-urln/aicon when accordion is unwrappedhttp://i.imgur.com/w4uTygT.png
icon-unwrapped-altn/aalt text when accordion is unwrapped-
icon-positionn/adisplay icon left or rightright
icon-heightpxicon width32px
icon-widthpxicon height32px
padding-bottompxpadding bottomn/a
padding-leftpxpadding leftn/a
padding-rightpxpadding rightn/a
padding-toppxpadding topn/a
paddingpxpadding10px 25px

mjml-accordion-element

This component enables you to create a accordion pane

attributeunitdescriptiondefault value
background-colorn/abackground colorn/a
font-familyn/afontUbuntu, Helvetica, Arial, sans-serif
icon-alignn/aicon alignmentmiddle
icon-wrapped-urln/aicon when accordion is wrappedhttp://i.imgur.com/bIXv1bk.png
icon-wrapped-altn/aalt text when accordion is wrapped+
icon-unwrapped-urln/aicon when accordion is unwrappedhttp://i.imgur.com/w4uTygT.png
icon-unwrapped-altn/aalt text when accordion is unwrapped-
icon-positionn/adisplay icon left or rightright
icon-heightn/aicon width32px
icon-widthn/aicon height32px

mjml-accordion-title

This component enables you to add and style a title to your accordion

attributeunitdescriptiondefault value
background-colorn/abackground colorn/a
colorn/atext colorn/a
font-familyn/afont familyUbuntu, Helvetica, Arial, sans-serif
font-sizepxfont size13px
padding-bottompxpadding bottomn/a
padding-leftpxpadding leftn/a
padding-rightpxpadding rightn/a
padding-toppxpadding topn/a
paddingpxpadding16px

mjml-accordion-text

This component enables you to add and style a text to your accordion

attributeunitdescriptiondefault value
background-colorn/abackground colorn/a
colorn/atext colorn/a
font-familyn/afont familyUbuntu, Helvetica, Arial, sans-serif
font-sizepxfont size13px
padding-bottompxpadding bottomn/a
padding-leftpxpadding leftn/a
padding-rightpxpadding rightn/a
padding-toppxpadding topn/a
paddingpxpadding16px

FAQs

Package last updated on 07 Mar 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