Skip to main content

Banner

A bold surface that should be displayed before any other page content.

Examples

Basic Banner

The basic Banner has bold, centered content.

Duis ut ea fugiat cillum.
import { Banner } from '@curology/ui-components-web/react/Banner';
<Banner>
Some banner copy
</Banner>

With Icons

Three different icons can be supplied.

Est voluptate sunt sit ad amet ipsum.

Est voluptate sunt sit ad amet ipsum.

Est voluptate sunt sit ad amet ipsum.

Est voluptate sunt sit ad amet ipsum.

import { Banner } from '@curology/ui-components-web/react/Banner';
<Banner
iconStart={iconNameOrComponent}
iconEnd={iconNameOrComponent}
iconPromo={iconNameOrComponent}
>
...
</Banner>

Props

BannerProps

NameTypeDefault ValueRequiredDescription
All attributes of a <header />
iconEndComponentClass<any, any> | FunctionComponent<any> | ReactElement<any, string | JSXElementConstructor<any>> | ForwardRefExoticComponent<any>NoAn icon to render at the end of the input.
iconPromoComponentClass<any, any> | FunctionComponent<any> | ReactElement<any, string | JSXElementConstructor<any>> | ForwardRefExoticComponent<any>NoAn icon to render to the left of the copy.
iconStartComponentClass<any, any> | FunctionComponent<any> | ReactElement<any, string | JSXElementConstructor<any>> | ForwardRefExoticComponent<any>NoAn icon to render at the front of the input.