Developer settings field for API keys / tokens — masked by default with reveal, copy, and rotate slots.
Developer settings field for API keys / tokens — masked by default with reveal, copy, and rotate slots.
The full secret only enters the DOM after Reveal is pressed.
••••••••abcd<ApiKeyField
label="Server key"
lastFour="abcd"
status="active"
value="sk_live_super_secret_token_abcd"
/>import { ApiKeyField, type ApiKeyStatus } from "@froggdesign/enter-ui-react";Reveal toggles a button with switching aria-label (Reveal API key ↔ Hide API key). Copy uses the standard CopyButton. The masked value carries an explicit aria-label so the code element is announced as such.
value: full secret. Held out of the DOM until Reveal is pressed.maskedValue: optional masked display string. Falls back to ••••••••<lastFour>.lastFour, createdAt, expiresAt: meta slots.status: "active" | "expired" | "revoked" — applies a status-aware border.actions: trailing slot for Rotate / Revoke buttons.disabled: disables Reveal and Copy.Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.