< Context / Components

Text

Introduction

The image component will generate any html text element, h1, h2, h3, h4, h5, h6, p, etc.

Body

tag

-plain text

The tag name without the <>

language

-ISO Language Codes

Changes language from default language set in context.settings.language
ISO Language Codes

text

-plain text

The text to display

Style

text

Styling on the component container.

Example .json

{
  "type":"text",
  "body":{
    "tag":"p",
    "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam at purus malesuada, consectetur nisi a, cursus leo. Quisque sodales eleifend laoreet. Aliquam at libero non urna eleifend dapibus eu ac nibh. Proin in nisl aliquam, aliquet libero sed, auctor quam. Maecenas eu est pretium, elementum nisl iaculis, molestie turpis."
  },
  "style":{
    "p":{
      "margin": {
        "top": "10",
        "right": "10",
        "bottom": "10",
        "left": "10"
      },
      "font": {
        "color": "#333333",
        "decoration": "",
        "family": "",
        "style": "",
        "weight": "normal",
        "size": "16",
        "align": ""
      }
    }
  }
}