EEnterUI
DocsComponentsThemesDonation
Get Started
      • FeatureFlagToggle
      • EnvironmentBadge
      • ApiKeyField
      • SecretInput
      • WebhookEndpointCard
EnterUIDocsProduct OperationsWorkflow AdminOperationsEnvironmentBadge
Product OperationsUpdated 6 May 2026

EnvironmentBadge

Compact environment chip — production / staging / preview / development / local / test.

Compact environment chip — production / staging / preview / development / local / test.

#Default usage

Environments

Use sm size in tables and md elsewhere.

ProductionStagingPreviewDevelopmentLocalTest
Code
<div className="docs-preview-row">
  <EnvironmentBadge dot environment="production" />
  <EnvironmentBadge environment="staging" />
  <EnvironmentBadge environment="preview" />
  <EnvironmentBadge environment="development" />
  <EnvironmentBadge environment="local" size="sm" />
  <EnvironmentBadge environment="test" size="sm" />
</div>

#Import

Code
import { EnvironmentBadge, type EnvironmentBadgeKind } from "@froggdesign/enter-ui-react";

#Accessibility

The badge is a <span> with an explicit aria-label so screen readers announce the environment by name even when the dot indicator alone differentiates between two badges.

#API

  • environment: required. One of production | staging | preview | development | local | test.
  • label: override the visible label and aria-label.
  • dot: render a leading dot indicator.
  • size: sm (table density) or md (default).

#Styling

Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousFeatureFlagToggle
NextApiKeyField

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling