The Environment component displays a clear banner at the top of every page to indicate when a user is viewing a non-production environment.
The component helps prevent confusion by ensuring users always understand whether they are interacting with a Development, Staging or Production service.
{{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "default", id: "685a695476fe7" }) }}Use the Environment component on any page that is not part of the live, production service.
This includes:
The purpose of the component is to ensure users — including developers, testers, content designers and stakeholders — immediately recognise that the page is not a live, public-facing system.
Do not use the Environment component in a production environment.
The banner should never appear on pages intended for real users completing real tasks.
Before using this component, consider:
The Environment component is intentionally prominent. Its bright yellow background and position at the top of the page ensure that users do not mistake a testing environment for a live service.
This component is used on:
This list is not exhaustive.
The below criteria all need to be met for a component to be considered as fully developed for use within the ASP Digital Design System.