Heading

The main title or heading with levels (H1 to H6) to show hierarchy and structure for the page and sections.
---
block:
  _bookshop_name: elements/heading
  inline_markdown: Main Heading Component
  level: h2
  size: null
  weight: null
  align: start
  case: null
  decoration: null
  margin:
    top: null
    bottom: null
  icon:
    alt: null
    name: null
    color: null
    background: null
    position: null
---
{% bookshop "{{block._bookshop_name}}" bind: block %}

Properties

levelenum

The heading level.

sizeenum

The font size of the text.

weightenum

The font weight.

caseenum

The text case.

alignenum

The text alignment.

decorationenum

Text decoration style.

marginobject

The margin around the text.

iconobject

Adds an icon to the heading.

Examples

Alignment

---
blocks:
  - _bookshop_name: elements/heading
    inline_markdown: Start aligned
    level: h3
    size: null
    weight: null
    decoration: null
    align: start
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: Center aligned
    level: h3
    size: null
    weight: null
    decoration: null
    align: center
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: End aligned
    level: h3
    size: null
    weight: null
    decoration: null
    align: end
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
---
{% for block in blocks %}
  {% bookshop "{{block._bookshop_name}}" bind: block %}
{% endfor %}

Levels

---
blocks:
  - inline_markdown: This is a h1
    level: h1
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: This is a h2
    level: h2
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: This is a h3
    level: h3
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: This is a h4
    level: h4
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: This is a h5
    level: h5
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: This is a h6
    level: h6
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
---
{% for block in blocks %}
  {% bookshop "elements/heading" bind: block %}
{% endfor %}

Case

---
blocks:
  - _bookshop_name: elements/heading
    inline_markdown: This is a uppercase heading
    level: h3
    size: null
    weight: null
    decoration: null
    align: null
    case: upper
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: This is a lowercase heading
    level: h3
    size: null
    weight: null
    decoration: null
    align: null
    case: lower
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: This is a capitalized heading
    level: h3
    size: null
    weight: null
    decoration: null
    align: null
    case: capitalize
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
---
{% for block in blocks %}
  {% bookshop "{{block._bookshop_name}}" bind: block %}
{% endfor %}

Emphasis

---
block:
  _bookshop_name: elements/heading
  inline_markdown: We can _emphasis_ text
  level: h1
  size: null
  weight: null
  decoration: null
  align: null
  case: null
  margin:
    top: null
    bottom: null
  icon:
    alt: null
    name: null
    color: null
    background: null
    position: null
---
{% bookshop "{{block._bookshop_name}}" bind: block %}

Icons

---
blocks:
  - _bookshop_name: elements/heading
    inline_markdown: Unlock your potential
    level: h3
    size: null
    weight: null
    decoration: null
    align: center
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: briefcase
      color: blue
      background: muted
      position: before
  - _bookshop_name: elements/heading
    inline_markdown: Everything you need
    level: h3
    size: null
    weight: null
    decoration: null
    align: start
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: arrow-up-right
      color: font-color
      background: false
      position: after
---
{% for block in blocks %}
  {% bookshop "{{block._bookshop_name}}" bind: block %}
{% endfor %}

Font Styles

---
blocks:
  - _bookshop_name: elements/heading
    inline_markdown: This is normal
    level: h2
    size: null
    weight: normal
    decoration: null
    align: null
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: This is bold
    level: h2
    size: null
    weight: bold
    decoration: null
    align: null
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: This is underlined
    level: h2
    size: null
    weight: bold
    decoration: underline
    align: null
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: This is italic
    level: h2
    size: null
    weight: bold
    decoration: italic
    align: null
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - _bookshop_name: elements/heading
    inline_markdown: This is alt-color
    level: h2
    size: null
    weight: bold
    decoration: alt-color
    align: null
    case: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
---
{% for block in blocks %}
  {% bookshop "{{block._bookshop_name}}" bind: block %}
{% endfor %}

Glow

---
blocks:
  - _bookshop_name: layouts/section
    label: null
    margin:
      top: null
      bottom: null
    shape:
      type: null
      size: null
      reverse: false
    padding:
      vertical: m
      horizontal: m
    background:
      scheme: null
      shadow: null
      transforms:
        scale: null
        scale_x: null
        scale_y: null
        rotate: null
        skew_x: null
        skew_y: null
        translate_x: null
        translate_y: null
        blur: null
        opacity: null
      color: highlight
      image:
        src: null
        alt: null
        style:
          opacity: null
          rounded: null
        background:
          horizontal_position: null
          vertical_position: null
          repeat: false
          fixed: null
    border:
      border_width: null
      border_type: null
      border_color: null
    content_blocks:
      - _bookshop_name: elements/heading
        inline_markdown: Heading with glow
        level: h1
        size: null
        weight: null
        case: null
        decoration: glow
        align: null
        margin:
          top: null
          bottom: null
        icon:
          alt: null
          name: null
          color: null
          background: null
          position: null
  - _bookshop_name: layouts/section
    label: null
    margin:
      top: null
      bottom: null
    shape:
      type: null
      size: null
      reverse: false
    padding:
      vertical: m
      horizontal: m
    background:
      scheme: opposite
      shadow: null
      transforms:
        scale: null
        scale_x: null
        scale_y: null
        rotate: null
        skew_x: null
        skew_y: null
        translate_x: null
        translate_y: null
        blur: null
        opacity: null
      color: highlight
      image:
        src: null
        alt: null
        style:
          opacity: null
          rounded: null
        background:
          horizontal_position: null
          vertical_position: null
          repeat: false
          fixed: null
    border:
      border_width: null
      border_type: null
      border_color: null
    content_blocks:
      - _bookshop_name: elements/heading
        inline_markdown: Glow on opposite
        level: h1
        size: null
        weight: null
        case: null
        decoration: glow
        align: null
        margin:
          top: null
          bottom: null
        icon:
          alt: null
          name: null
          color: null
          background: null
          position: null
---
{% for block in blocks %}
  {% bookshop "{{block._bookshop_name}}" bind: block %}
{% endfor %}

Margins

---
blocks:
  - inline_markdown: XL Bottom Margin
    level: h3
    size: null
    weight: null
    case: null
    decoration: null
    align: null
    margin:
      top: none
      bottom: xl
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: No Margin
    level: h3
    size: null
    weight: bold
    case: null
    decoration: null
    align: null
    margin:
      top: none
      bottom: none
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: M Bottom Margin
    level: h3
    size: null
    weight: bold
    case: null
    decoration: null
    align: null
    margin:
      top: none
      bottom: m
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
  - inline_markdown: Another heading
    level: h3
    size: null
    weight: bold
    case: null
    decoration: null
    align: null
    margin:
      top: null
      bottom: null
    icon:
      alt: null
      name: null
      color: null
      background: null
      position: null
---
{% for block in blocks %}
  {% bookshop "elements/heading" bind: block %}
{% endfor %}