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.jsonAPI reference
Environment Variables
| Prop | Type | Default | Description |
|---|---|---|---|
items | EnvironmentVariable[] | — | Provides keys, secret values, and environment scopes. |
revealedIds | string[] | [] | Controls which values are visible. |
onToggle | (id: string) => void | — | Reveals or masks a selected value. |
onCopy | (id: string) => void | — | Copies a selected value. |