Skip to content
Get Pro

Environment Variables

A secret-aware configuration surface with masked values and explicit reveal or copy actions.

Environment variables

3 configured
  • DATABASE_URLProduction

    ••••••••••••••••

  • OPENAI_API_KEYAll environments

    ••••••••••••••••

  • PUBLIC_SITE_URLPublic

    ••••••••••••••••

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/environment-variables.json

API reference

Environment Variables

Environment Variables properties
PropTypeDefaultDescription
itemsEnvironmentVariable[]Provides keys, secret values, and environment scopes.
revealedIdsstring[][]Controls which values are visible.
onToggle(id: string) => voidReveals or masks a selected value.
onCopy(id: string) => voidCopies a selected value.