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. Component Types

Banner

PreviousHeader & FooterNextActions

Last updated 2 years ago

The <Banner> tag can be used to create site banners. To create your own banner component, simply create a new component and use the <Banner> tag as the outer wrapper for the component. (This should replace the <Section> tag as the outermost wrapper.)

<Banner dataRef={content.banner}>
...
</Banner>

Attributes

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

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

  • location: Array<string> (optional) - Where the component can appear; can include 'header', 'main', and 'footer' (Default: ['main'])

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

custom properties