TidalUI

API key manager preview

Review masked key metadata, scopes and lifecycle status with explicit create and revoke requests.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/api-key-manager

Import components/ui/tidal.css, components/ui/api-key-manager.css. Wrap installed components in tidal-scope.

Preview

API key manager component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/api-key-manager.css";
import{TidalApiKeyManager}from"./components/ui/api-key-manager";
export default()=><div className="tidal-scope"><TidalApiKeyManager keys={[{id:"example",name:"Demo",maskedValue:"value",scopes:["value"],status:"active",created:{label:"Demo"}}]} title={"Demo"}/></div>;

API and props

TidalApiKeyManager.keys (required)
ReadonlyArray<TidalApiKeyRecord>

Required keys value accepted by this exported component.

TidalApiKeyManager.title (required)
ReactNode

Required title value accepted by this exported component.

TidalApiKeyManager.createButtonProps
ButtonProps | undefined

Optional create button props value accepted by this exported component.

TidalApiKeyManager.createButtonRef
Ref<HTMLButtonElement> | undefined

Optional create button ref value accepted by this exported component.

TidalApiKeyManager.creationPending
boolean | undefined

Optional creation pending value accepted by this exported component.

TidalApiKeyManager.description
ReactNode

Optional description value accepted by this exported component.

TidalApiKeyManager.dialog
ReactNode

Creation, confirmation, and one-time secret UI belong to the consumer. No key is generated or stored here.

TidalApiKeyManager.emptyContent
ReactNode

Optional empty content value accepted by this exported component.

TidalApiKeyManager.headingLevel
"h2" | "h3" | "h4" | "h5" | "h6" | undefined

Optional heading level value accepted by this exported component.

TidalApiKeyManager.labels
Partial<{ create: string; creating: string; revoke: string; revoking: string; active: string; revoked: string; expired: string; created: string; lastUsed: string; unused: string; expires: string; scopes: string; noScopes: string; }> | undefined

Optional labels value accepted by this exported component.

TidalApiKeyManager.onCreateRequest
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the create request interaction is proposed.

TidalApiKeyManager.onRevokeRequest
((record: TidalApiKeyRecord, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the revoke request interaction is proposed.

TidalApiKeyManager.pendingKeyId
string | undefined

Optional pending key id value accepted by this exported component.

TidalApiKeyManager.secret
ReactNode

Optional secret value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas