Introducing shieldcn — README badges, shadcn style.

Check it out

Env Table

Read-only environment variable table with masked values, click-to-reveal, and copy.

lucide-react
Loading...

Installation

$ shadcn add @jalco/env-table

Usage

import { EnvTable } from "@/components/env-table"
<EnvTable />

API Reference

EnvTable

PropType

EnvVariable

PropType

Notes

  • Client component. Uses "use client" for reveal toggle state and clipboard access.
  • Copy .env. The toolbar "Copy .env" button copies all variables in KEY=value format, ready to paste into a .env file.
  • Duplicate keys. The component handles duplicate keys gracefully — common when showing the same variable across multiple environments.
  • Icon library. Uses Lucide icons by default. Since this is copy-paste code, you can swap the imports if your project uses a different icon library.