Environment indicator

Shows at a glance that an application runs on a non-production environment (DEV, TEST, ACC).

Beta
Show details
Beta
Published: October 21, 2026
Updated: October 21, 2026

Overview

The Environment indicator makes the environment an application runs on (DEV, TEST, ACC) obvious at a glance, without covering its content. It only exists to signal that users are not in production: production, empty or unknown environments render nothing.

Status: beta. The component is merged in code but not yet on the production Storybook.

Environment indicator on DEV with the strip, the tab and the build tooltip

Key features

  • Three environments: DEV, TEST and ACC, each with its own colour.
  • Two modes: a thin strip with a tab while the window is focused; a coloured frame around the page when another window is active.
  • Build information: the tab shows a tooltip with version, build, commit and deployment date, and copies it on click.
  • Never in production: nothing is rendered outside non-production environments.

Anatomy

Environment indicator anatomy with numbered markers
  1. Strip: 4 px line at the top of the page in the environment colour.
  2. Tab: environment label; reveals the tooltip and copies the build information on click.
  3. Tooltip: environment name and build information.

Properties

Figma

Code

Notes

Env

env

DEV, TEST or ACC. Production, empty or unknown values render nothing.

Mode

mode

auto (default) follows the window focus. Figma shows Focused and Unfocused; focused and unfocused force one appearance.

State

—

Default, Hover, Focus and Copied come from user interaction.

Enabled

disabled

Turns the indicator off, for example when the app already shows its own marker.

Label visible

persistent, hide-delay

The tab hides after 5000 ms by default and comes back when the pointer approaches. persistent keeps it visible.

—

label

Custom label such as TEST-2. Upper case, 6 characters max. The colour still comes from env.

—

tooltip, version, build, commit, deployed-at

Tooltip content. The build block is hidden when version, build and commit are empty.

—

auto-detect

Reads the values from window.__NOVA_ENVIRONMENT__ or nova-* meta tags at deploy time.

—

prefix-title

Prefixes the page title, for example [TEST] Asset Manager.

—

contained

Renders inside its parent instead of the viewport. For previews and documentation.

—

environmentCopied

Event emitted after the build information is copied.


Look and feel

Environments

Environment indicator on DEV, TEST and ACC

Modes

  • Focused: a 4 px strip at the top with a tab hanging from it.
  • Unfocused: when another window is active, the page is framed by the environment colour so it stands out next to other windows.
Environment indicator in Focused and Unfocused modes

States

Default, Hover (tooltip), Focus and Copied.

Environment indicator in Default, Hover, Focus and Copied states

Themes

Spark and Ocean, in light and dark mode.

Environment indicator in Spark light, Spark dark, Ocean light and Ocean dark

Behavior

  • The page only reserves the strip line; the content scrolls below it and nothing is covered.
  • In the unfocused state the page is scaled down into the frame, never re-laid out.
  • When a click gives the focus back, the page is restored after that click, so it lands where the user aimed.
  • In framework apps, prefer the environment service (NovaEnvironmentProvider, NvEnvironmentService, provideNovaEnvironment, AddNovaEnvironment), which reads the environment from the app configuration.

Accessibility

  • The tab can be reached with the keyboard; focus shows it even when it is hidden.
  • The environment is shown by its label as well as by colour.
  • The copy action is confirmed by the Copied state.

Usage

  • Do add it once, at the root of every non-production deployment.
  • Do use a custom label for parallel environments, for example TEST-2.
  • Don't use it to show production or business status: it renders nothing in production.
  • Don't add another environment banner on top of it.

  • Status indicator: for the status of a system or a process inside the page.

The Figma file contains the latest UI designs. Links to Web Component, Blazor, Angular, React and VueJS will be added once the component is on the production Storybook.

Figma component

Webcomponent

-

Blazor

-

Angular

-

React

-

VueJS

-

Feedback

Have feedback, an idea, or a bug to report? Head over to our Contributions page.