Menu

Image box

Use this component in an article or explainer when you introduce a new topic. Can be put in between sections, or right above the splitter. Use the tall variation for images that need more space.

Minimum requirements
  • 1 image (div[data-image])
Advanced settings

Presets

?

Variations

?

Modifiers

?


HTML
Copy to clipboard

Details

Usage

The image box component can be used as a dividing component to introduce a new page section or just as an highlight for a block of text.

Be aware that the image safe area is one of the smallest from the components, however, using the tall preset gives you more space.

Guidelines

  1. Do not use as a link or teaser, instead use the promo box.
  2. Image dimensions:
    • 2560x750 (resolution)
    • JPG and WEBP (format)

HTML structure

Overall HTML view of an image box component:

HTML file (.html)
(other component(s))
div[data-image].image-box
(other component(s))

Presets

Image box presets:

PresetDescription
DefaultDefault preset.

Variations

Image box variations:

VariationDescription
DefaultComposed of a single container with a data-image attribute.

Modifiers

Image box classes:

ClassDescription
-top-arrow, -bottom-arrowDefault class is -bottom-arrow.
-tallIncreases the image height. Can be used if you have an image that requires more space to show its most important subject.

To enable a modifier, add it as a class to the outermost element of this component.

Embedding

The image box component cannot be embedded inside other component.

main (HTML file)
(component)
div.image-box

Nesting

The image box component cannot be used as a container of other components and/or elements.

main (HTML file)
div.image-box
(Element)