APIKeyDisplay
stableMasked API key display with reveal toggle, copy-to-clipboard, metadata, and revoke action
import { APIKeyDisplay } from "@nodus/design-system"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
apiKeyreq | string | — | The full API key |
label | string | — | Display label |
created | string | — | Creation date |
expires | string | — | Expiry date |
onRevoke | () => void | — | Revoke callback |
apiKeyrequiredType
stringDefault —The full API key
labelType
stringDefault —Display label
createdType
stringDefault —Creation date
expiresType
stringDefault —Expiry date
onRevokeType
() => voidDefault —Revoke callback
MobileTouch Target
Copy button must be ≥44px. On mobile, the key string truncates — show only first/last 4 chars with ellipsis. Reveal-key toggle must also meet 44px.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?