Menu

Info box

An info box is a content container used to display/feature either a disclaimer or critical information to the user.

Minimum requirements
  • 1 paragraph (p)

Quick access

Advanced settings

Presets

?

Variations

?

Modifiers

?

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volup.


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volup.

Lorem ipsum dolor sit amet

HTML
Copy to clipboard

Details

Usage

The info box component is used to inform the user about something critical and with a temporary nature.

Guidelines

  1. Should be embedded in a section component whenever the page lacks in full width components

HTML structure

Overall HTML view of an info box component:

HTML file (.html)
(other component(s))
div.info-box
p (one or more)
a (optional, one or more)
(other component(s))

Presets

Info box presets:

PresetDescription
DefaultDefault template.
WarningUsed to inform the user about an important information.
AlertUsed to alert the user about a critical information.

Variations

Info box variations:

VariationDescription
DefaultComposed of a p tag.
With linkComposed of a p tag and a a tag.

Modifiers

Info box classes:

ClassDescription
-warning
,
-alert
The -warning class changes the background color to inform the user about an important information. The -alert class changes the background color to alert the user about a critical information.
-top-arrow
Adds to the top a triangle pointing inside. The use of this class is recommended.

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

Embedding

The info box component can be embedded inside other component:

ComponentDescription
SectionThe embedding is recommended whenever the page lacks in full width components.
main (HTML file)
(component, one of the above table)
div.info-box (element)

Some components can be placed/embedded inside other components. Whenever this happens, they become elements of the respective parent component and they can no longer be called components.

Nesting

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

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