Environment variablesPro
Project env vars with masking, scopes, .env paste, dirty state and save.
What's inside
- Masked values with reveal
- Per-environment scope
- Paste a .env file
- Unsaved-changes state
When to use
- Project settings in hosting or developer products.
When not to use
- App preferences.
Installation
Usage
Import it from @/components/blocks/env-variables after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { EnvVariables } from "@/components/blocks/env-variables";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<EnvVariables />
</main>
);
}API reference
EnvVariables
Environment variables for a project with masked values, scopes, .env paste and an unsaved-changes bar. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through fields |
| ⌘VorCtrl+V | Paste a .env file into a key field |
Accessibility
- Every field is labelled; invalid keys are marked and explained.
Motion
- Rows animate in and out; the save bar slides up when there are changes.
Responsive behavior
- Rows stack below 768px.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Encrypt values at rest; the block only masks them in the UI.
This page as Markdown, for assistants and coding agents:
/blocks/env-variables/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt