4. Section syntax

For developersVersion 1.0.0Last updated:

A. Metadata (on the root element)

<section class="hero"
  data-bos-block="Hero principal"
  data-bos-category="mi-sitio"
  data-bos-icon="star-filled"
  data-bos-description="Cabecera con imagen de fondo"
  data-bos-keywords="portada, banner"
  data-bos-align="full">
AttributeUse
data-bos-blockBlock name in the inserter.
data-bos-categoryInserter category (by default, the package slug).
data-bos-iconName of a Dashicon without the dashicons- prefix.
data-bos-description, data-bos-keywordsDescription and search keywords.
data-bos-alignfull (default), wide or none.
data-bos-roleheader or footer: global part of the site (see section 7). popup: popup section (see the “Popups” chapter).
data-bos-componentRoot of an interactive component: accordion, tabs, carousel, counter, before-after or a custom one (see the “Interactive components” chapter).
data-bos-option-<nombre>Default value of a component option, which the client can change in the editor.
data-bos-partPart of a component (trigger, panel, tab, track…).
data-bos-optionsJSON schema of a custom component’s options.
data-bos-component-nameComponent name in the editor panel (optional).

In this chapter