accordion: Accordion

Description Usage Arguments Functions See Also Examples

Description

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.

Usage

1
2
3
4
5
6
7

Arguments

...

Unnamed items that comprise this list of MJML tags.

Functions

See Also

https://mjml.io/documentation/#mjml-accordion

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
mj_ml(
  mj_body(
    mj_container(
      mj_accordion(
        mj_accordion_element(
          mj_accordion_title("First element"),
          mj_accordion_text("Text of first element")
        ),
        mj_accordion_element(
          mj_accordion_title("Second element"),
          mj_accordion_text("Text of second element")
        )
      )
    )
  )
)

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.