Unstack for Developers
  • Overview
  • Getting started
    • Custom Themes
    • Custom Components
  • Component Types
    • Section
    • Header & Footer
    • Banner
  • Basic Tags
    • Actions
    • Box
    • Code
    • Element
    • Media
    • Plaintext
    • Richtext
    • Collection
    • Article Collection
  • eCommerce Tags
    • Product
    • Product Inventory
    • Product Price
    • Product Options
    • Quantity Selector
    • Cart & Drawer (soon)
  • Utility Tags
    • Generator
    • JSONParser
  • Other NoML Features
    • Variables
    • Raw HTML
    • Component Properties
Powered by GitBook
On this page
  1. Basic Tags

Element

PreviousCodeNextMedia

Last updated 1 year ago

The <Element> tag is similar to the Box tag, but it doesn't provide any layout or style controls within the page editor. It exists to make it easy to attach to a div or other HTML element.

<Element dataRef={content.block} className="block">
...
</Element>

Attributes

  • dataRef: DataLocator - the data-element storing the Box's configuration

  • className: string (optional) - a hard-coded class name to add to the rendered element

  • properties: Array<[object]> (optional) - defines properties that content authors can configure within the page editor. For details see .

custom properties
custom properties