Skip to main content

Banner

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.)

Attributes

The banner tag has the following attributes.

AttributeTypeRequiredDescription
classNamestringOptionalA hard-coded class name to add to the rendered element.
dataRefDataLocatorRequiredThe data-element storing the Section's configuration
locationarray\stringOptionalWhere the component can appear; header, main, and footer (Default: ['main'])
propertiesarray/objectOptionalDefine properties that content authors can configure within the page editor. For details see custom properties.

Example

An example of the banner tag is shown below.

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