Env variables
Environment variables as an editable table: names checked as you type, secrets masked and never shown again after saving, per-environment checkboxes, paste a whole .env file, and one save bar that counts the changes.
When to use
- Hosting, CI and serverless products.
- Any app with configuration per environment.
When not to use
- A handful of app settings; use a settings form.
Installation
pnpm dlx shadcn@latest add @caliper/env-variables
Adds its 12 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
parseDotenv
0 props
No props of its own; it accepts the native props of its root element.
EnvVariables
4 props
Keyboard
- Keyboard and focus come from Radix dialog: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It exposes region, alert and status semantics, with aria-labelledby, aria-hidden, aria-label, aria-invalid, aria-describedby and aria-pressed kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/env-variables.mdThe index of every part is at /llms.txt.