Skip to content

APIKeyDisplay

stable

Masked API key display with reveal toggle, copy-to-clipboard, metadata, and revoke action

TrustInteractive/Storybook ↗
import { APIKeyDisplay } from "@nodus/design-system"
Loading demo…

Props

apiKeyrequired
Type stringDefault

The full API key

label
Type stringDefault

Display label

created
Type stringDefault

Creation date

expires
Type stringDefault

Expiry date

onRevoke
Type () => voidDefault

Revoke callback

Metadatasemantictypebordershadowmotion
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?