Skip to main content
Coat of arms of Barbados
Official government website

Status banner

A coloured strip stating where a page sits in its lifecycle.

Preview

Alpha status banner

The Status banner component is a coloured strip that tells users where a page sits in its lifecycle: in Alpha or Beta testing, migrated from an older site, or affected by a service disruption. It holds one or two short paragraphs.

It comes in two shapes. The default is an inline block that sits inside the page content column and brings its own padding. For the strip directly below the header, use the full-width shape instead: the background bleeds edge to edge while the text stays aligned with the page content column.

When to use this component

Use a status banner when the state of the page changes what users should expect from it: a service still being tested, content moved from an older site, or a disruption to the service the page describes. Show one banner per page, directly below the header, and keep the message to a sentence or two with a link to more detail or a feedback route.

When not to use this component

Do not use a status banner for form validation errors. Use the error summary and error messages instead. Do not stack more than one banner on a page, and do not use one for routine content that isn't about the page's status.

Page-level use

For the one-per-page strip directly below the header, add the govbb-status-banner--full-width modifier and wrap the content in govbb-width-container govbb-status-banner__inner. This is the same full-bleed pattern the official banner, header and footer use: the tinted background spans the viewport and the text lines up with the rest of the page content. Do not wrap the banner in your own container or override its padding.

Full-width status banner

In React the fullWidth prop adds the modifier and renders the inner width container for you.

Variants

Each variant has its own background colour: --alpha and --beta for pages under test, --migrated for content moved from an older site, and --service for service disruptions.

Status banner variants

Rounded corners

Add the govbb-status-banner--rounded modifier for a softer corner when the banner is nested inside content rather than sitting edge-to-edge below the header.

Rounded status banner