# Application App Shell: Environment Banner Shell

App shell with a pinned staging environment banner, a switch action, a topbar, and a deployments page with an environment facts panel.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/env-banner-shell
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [App Shells](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/env-banner-shell.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-app-shells-env-banner-shell
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: avatars, badge, button
- Installs to: `@/components/blocks/application-pro/app-shells/env-banner-shell`

## About this block

Env Banner Shell is the environment-aware app frame: an
inverted strip pinned above the topbar names the staging
environment, states that data resets nightly at 02:00 UTC,
and offers a Switch to production button plus a dismiss.
Below it a standard topbar (Acme, Overview, Deployments
active, Logs, Settings) leads into a Deployments page whose
main panel lists four recent deploys, from v2.14.0 Live down
through a rolled back and two superseded builds, each row
carrying the author avatar, version, short commit hash,
time, and status badge.

The banner, nav, deploy list, and environment facts are
separate typed arrays. A right rail dl restates the
environment (Staging, eu-west-1, release/2.14 branch, the
nightly reset, and the last deploy time) under a Promote to
production button, so the page reads as a real deployments
view, not just a shell around the banner.

## When to use

Reach for this shell whenever a non-production environment
needs a persistent warning above the app: a staging or
preview deploy, a demo tenant, or an impersonation session.
Wire the banner copy and Switch action to your environment
context and replace the deploys panel with the real page.

A natural flow around it on an Application Pro page:

**Before**

- Nothing, shells are the page

**After**

- [Status and health](https://www.shadcn-ui-blocks.com/blocks/application-pro/status-health)
- [Developer tools](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)

## What you can display

One strong use is the staging banner over a deployments
page. Other pinned-banner contexts:

- **Impersonation.** A strip noting the admin is viewing as
  another user, with a Stop impersonating action.
- **Demo tenant.** A banner marking sample data and a reset
  schedule, with an upgrade button.
- **Maintenance window.** A strip announcing a scheduled
  window, with a link to the status page.

> Tip: use the inverted strip only for state the user must
> not miss; stack more than one banner and each one loses
> the urgency that makes it work.

## More in Application App Shells

- [Anchor Nav Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/anchor-nav-shell)
- [Bottom Panel Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/bottom-panel-shell)
- [Breadcrumb Header Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/breadcrumb-header-shell)
- [Card Grid Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/card-grid-shell)
- [Centered Content Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/centered-content-shell)
- [Checklist Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/checklist-shell)
- [Collapsible Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/collapsible-sidebar-shell)
- [Command Bar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/command-bar-shell)
- [Dashboard Home Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/dashboard-home-shell)
- [Document Tabs Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/document-tabs-shell)
- [Dual Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/dual-sidebar-shell)
- [Empty State Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/empty-state-shell)
- [Focus Mode Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/focus-mode-shell)
- [Full Bleed Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/full-bleed-shell)
- [Icon Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/icon-sidebar-shell)
- [Inbox Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/inbox-shell)
- [Nested Nav Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/nested-nav-sidebar-shell)
- [Right Rail Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/right-rail-shell)
- [Settings Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/settings-shell)
- [Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/sidebar-shell)
- [Split Content Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/split-content-shell)
- [Sticky Toolbar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/sticky-toolbar-shell)
- [Tabbed Page Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/tabbed-page-shell)
- [Topbar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/topbar-shell)
- [Two Pane Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/two-pane-shell)
- [Wizard Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/wizard-shell)
