EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • FeatureFlagToggle
      • EnvironmentBadge
      • ApiKeyField
      • SecretInput
      • WebhookEndpointCard

Default usage

  1. EnterUI
  2. /Docs
  3. /Product Operations
  4. /Workflow and Admin
  5. /Operations
  6. /EnvironmentBadge
Updated 3 October 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
<HStack gap={12} wrap>
  <EnvironmentBadge dot environment="production" />
  <EnvironmentBadge environment="staging" />
  <EnvironmentBadge environment="preview" />
  <EnvironmentBadge environment="development" />
  <EnvironmentBadge environment="local" size="sm" />
  <EnvironmentBadge environment="test" size="sm" />
</HStack>

#Import

Code
import { EnvironmentBadge, HStack, 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
  • Default usage
  • Import
  • Accessibility
  • API
  • Styling