Component libraryAPI key manager
API key manager
ProReview masked key metadata, scopes and lifecycle status with explicit create and revoke requests.
npx shadcn@latest add @tidal-pro/api-key-managerInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/api-key-manager.css, components/ui/status-badge.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Consumer-owned unique-id key records include name, maskedValue, scopes, active/revoked/expired status, exact created/lastUsed/expires time labels, optional native revoke button props/ref and extra actions. Root section props/ref, bounded headingLevel, labels, numeric empty content, create props/ref, creationPending, pendingKeyId and secret/dialog slots are supported. Native handlers can prevent available requests. Pending/revoked/expired actions remain focusable with aria-disabled and reject requests; native disabled button props retain native behavior. The component never generates, retrieves, stores, rotates or revokes keys, and maskedValue must be display-safe metadata. Consumers own authorization, real secrets, one-time reveal/copy UI, confirmations and every backend mutation. The demo uses local non-working records.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.