from emailer_lib.mjml import carousel_image
result = carousel_image("Hello")mjml.carousel_image
mjml.carousel_image(content=None, attributes=None)Create an MJML <mj-carousel-image> 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-carousel-image>
Examples
With content:
With attributes and content:
result = carousel_image("Hello", attributes={"background-color": "red"})