Environment Variables
Display environment variables with masking and copy functionality.
The EnvironmentVariables component displays environment variables with value masking, visibility toggle, and copy functionality.
Install using CLI
Install Manually
Copy and paste the following files into the same folder.
Features
- Value masking by default
- Toggle visibility switch
- Copy individual values
- Export format support (
export KEY="value") - Required badge indicator
Props
<EnvironmentVariables />
showValuesboolean
defaultShowValuesboolean
@update:showValues(show: boolean) => void
...propsHTMLAttributes
<EnvironmentVariablesHeader />
...propsHTMLAttributes
<EnvironmentVariablesTitle />
defaultSlot
...propsHTMLAttributes
<EnvironmentVariablesToggle />
...propsSwitchProps
<EnvironmentVariablesContent />
...propsHTMLAttributes
<EnvironmentVariable />
namerequiredstring
valuerequiredstring
...propsHTMLAttributes
<EnvironmentVariableGroup />
...propsHTMLAttributes
<EnvironmentVariableName />
defaultSlot
...propsHTMLAttributes
<EnvironmentVariableValue />
defaultSlot
...propsHTMLAttributes
<EnvironmentVariableCopyButton />
copyFormat"name" | "value" | "export"
@copy() => void
@error(error: Error) => void
timeoutnumber
...propsButtonProps
<EnvironmentVariableRequired />
defaultSlot
...propsBadgeProps