mjml.accordion_title

mjml.accordion_title(content=None, attributes=None)

Create an MJML <mj-accordion-title> tag.

This is an ending tag that accepts text/HTML content but not MJML children.

Parameters

content : Optional[str] = None

Text or HTML content for the tag

attributes : Optional[TagAttrs] = None

Optional dict of tag attributes

Returns

: MJMLTag

MJMLTag object representing <mj-accordion-title>

Examples

With content:

from emailer_lib.mjml import accordion_title

result = accordion_title("Hello")

With attributes and content:

result = accordion_title("Hello", attributes={"background-color": "red"})