Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components138

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeProLens rangePro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

BeeswarmNewProSunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmerWave textNew

Blocks124

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardProEnvironment variablesProCode reviewProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerFooter marqueeNewProCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components114

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowProInfinite moodboardNewPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProCode magic moveProTypewriter terminalPro

Stretch refreshProFeedback morphProMorph loaderProSkeleton morphProCelebrate buttonProBlack holeProSlide to confirmProCharge sessionProArming switchProPadlock toggleProDot matrix loaderPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksEnvironment variables

Environment variables

Pro

An environment variables and secrets manager with masked values, per-environment scope toggles, .env paste import with duplicate and invalid key warnings, write-only sensitive values, an environment diff by fingerprint, and a redeploy banner.

Live block · sample data

When to use

  • A settings screen where developers manage configuration and secrets across development, preview, and production.
  • Onboarding a project by pasting an existing .env file and scoping it to environments in one step.
  • Auditing drift between environments before a release, such as a key set in Preview but missing in Production.

When not to use

  • Use api-keys for creating, scoping, and revoking access tokens that your product issues to its users.
  • Use a plain form for a handful of fixed settings that are not per environment.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Render <EnvVariables /> for the demo, or pass variables, project and sampleDotenv with onChange to persist rows and onRedeploy (which can return a promise) to run a real deploy.

example.tsx
1import { EnvVariables } from "@/components/arc/blocks/env-variables/env-variables";2 3export function ProjectEnvironment({ project, variables }) {4  return (5    <EnvVariables6      project={project.slug}7      variables={variables}8      sampleDotenv=""9      onChange={rows => saveVariables(project.id, rows)}10      onRedeploy={environments => triggerRedeploy(project.id, environments)}11    />12  );13}
Built fromButtonCheckboxCopy buttonInputSearch fieldSegmented controlSelectSwitchTextarea

API reference

EnvVariables

An environment variables and secrets manager. Each row is one value and the environments it applies to, drawn as a matrix of Development, Preview, and Production toggles, so a key can hold a different value per environment. Values stay masked and are not in the DOM until revealed; sensitive values are write-only. Add one variable or paste a whole .env file, compare two environments by fingerprint, and redeploy from a banner that appears after changes.

PropTypeDefaultDescription
variablesEnvVariable[]VARIABLESRows in any order: { id, key, value, environments, sensitive, updated, updatedBy }. A key can appear on several rows as long as each environment is covered at most once. The block sorts rows by key.
projectstring"northwind-storefront"Project name shown under the heading.
sampleDotenvstringSAMPLE_DOTENVText the paste area starts with when Import .env opens. Pass an empty string for a blank paste area.
titlestring"Environment variables"Heading text.
onChange(variables: EnvVariable[]) => void–Called with every row after each add, import, edit, removal, scope toggle, or copy between environments.
onRedeploy(environments: EnvName[]) => void | Promise<void>–Called when Redeploy is pressed with the environments that changed. Return a promise to keep the banner pending until it settles; a rejection shows the failure state and keeps the changes queued. Without it, the deploy is simulated.
classNamestring–Class on the root section.

Keyboard interactions

Tab
Moves through the header actions, search, view switch, and each row's reveal, copy, environment toggles, and edit button.
EnterorSpace
Reveals or hides a value, turns an environment on or off for a row, opens the inline editor, or presses a button.
Escape
Closes the inline editor or the add panel and returns focus to the button that opened it.
Arrow keys
Move between options in the view switch, the add mode switch, and the compare environment selects.
Enter in a form
Saves the edited value, saves a new variable, or imports the parsed .env lines.

Accessibility

  • Masked values render as bullets hidden from assistive technology plus a visually hidden "Hidden value" or "Sensitive value, write-only" label; the real value is only rendered after Reveal.
  • Reveal and environment toggles are buttons with aria-pressed and names that include the key, such as "Production for DATABASE_URL".
  • Each row's toggles sit in a labelled group; the wide matrix column heads are decorative and every toggle carries its own name.
  • Inline errors (invalid key, key already set in an environment, empty value) are tied to their fields; scope conflicts appear as an alert under the row.
  • A polite live region announces every change, import, removal, and redeploy result, and the .env parse summary updates live as you type.
  • Pointer focus draws no ring; keyboard focus shows Arc's shared focus ring. Keyboard position shows as a fill on toggles and icon buttons, matching hover.

Motion

  • The redeploy banner, add panel, inline editor, and conflict notes open with height and opacity on the smooth spring and close with a quicker exit ease.
  • Environment toggles fill with a snappy scale and draw their check with pathLength, both without overshoot.
  • Revealing a value crossfades the mask and the value with a short rise in a fixed height slot, so the row never jumps.
  • Added and removed rows grow and collapse their height so the list closes its gap; saved or imported rows glow once in the accent and fade.
  • The Variables and Compare views crossfade with a small rise. Reduced motion removes all travel and lands every change at once.

Responsive behavior

  • From a 760px container, rows become a matrix: key, value, one toggle column per environment with a count of values set, and an edit action.
  • Below that, each row stacks the key and edit action, then the value, then three labelled environment pills in an even grid.
  • Below 560px header actions, search, form actions, and the redeploy button go full width; the .env preview drops the masked value column.
  • Toggles, icon buttons, and the swap control grow to 44px targets on touch screens. The block is a container query, so it adapts to the space it is placed in.

Performance

  • The .env text is parsed in a memo keyed on the text, rows, and chosen environments; there is no per-frame work.
  • Only revealed rows render their value and copy button, and only the open row renders an editor.
  • Timers for notes, the saved glow, and the redeploy confirmation are cleared on change and unmount.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it for a project settings page in a hosting, deployment, or backend platform. Wire onChange to your store and onRedeploy to your deploy API.
  • Search matches key names only, never values. Compare shows a six character fingerprint of each value, so two environments can be checked without exposing either.
  • Sensitive rows are write-only: the editor starts empty and saving replaces the value; the flag cannot be turned off without removing and re-adding the variable.
  • The .env parser handles comments, blank lines, export prefixes, quotes, and inline comments. Later duplicates win the key and earlier ones are skipped; keys that start with a number or contain other characters are rejected.
/components/blocks/env-variables/markdown

The full library index for assistants is at /llms.txt.

Related

API keysProBlockAPI key management where Create key unfolds into its form and each secret is shown once.Security settingsProBlockAn account security page with guided two-factor setup, password change and active sessions.
PreviousSearch resultsNextBudget variance
Arc · 124 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

Environment variables

northwind-storefront10 keys across 3 environments

KeyValueDevelopment6 setPreview8 setProduction10 set
  • DATABASE_URLUpdated Aug 12 by Emma Collins
    ••••••••••••••••Hidden value
  • DATABASE_URLUpdated Aug 12 by Emma Collins
    ••••••••••••••••Sensitive value, write-onlySensitive
  • FEATURE_NEW_CHECKOUTUpdated Sep 21 by Emma Collins
    ••••••••••••••••Hidden value
  • FEATURE_NEW_CHECKOUTUpdated Sep 21 by Emma Collins
    ••••••••••••••••Hidden value
  • LOG_LEVELUpdated Apr 8 by Sofia Ramirez
    ••••••••••••••••Hidden value
  • LOG_LEVELUpdated Apr 8 by Sofia Ramirez
    ••••••••••••••••Hidden value
  • NEXT_PUBLIC_SITE_URLUpdated Jun 3 by Marcus Johnson
    ••••••••••••••••Hidden value
  • NEXT_PUBLIC_SITE_URLUpdated Jun 3 by Marcus Johnson
    ••••••••••••••••Hidden value
  • NEXT_PUBLIC_SITE_URLUpdated Jun 3 by Marcus Johnson
    ••••••••••••••••Hidden value
  • REDIS_URLUpdated Sep 18 by Sofia Ramirez
    ••••••••••••••••Hidden value
  • REDIS_URLUpdated Sep 18 by Sofia Ramirez
    ••••••••••••••••Sensitive value, write-onlySensitive
  • RESEND_API_KEYUpdated Jul 19 by Jasmine Brooks
    ••••••••••••••••Hidden value
  • SEARCH_ADMIN_KEYUpdated Jul 30 by Jasmine Brooks
    ••••••••••••••••Sensitive value, write-onlySensitive
  • SENTRY_DSNUpdated May 27 by Marcus Johnson
    ••••••••••••••••Hidden value
  • STRIPE_SECRET_KEYUpdated Sep 2 by Ava Mitchell
    ••••••••••••••••Hidden value
  • STRIPE_SECRET_KEYUpdated Sep 2 by Ava Mitchell
    ••••••••••••••••Sensitive value, write-onlySensitive
  • STRIPE_WEBHOOK_SECRETUpdated Sep 2 by Ava Mitchell
    ••••••••••••••••Sensitive value, write-onlySensitive