TidalUI

Session manager preview

Review active devices and request revocation with explicit current-session protection.

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/session-manager

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

Preview

Session manager component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/session-manager.css";
import{TidalSessionManager}from"./components/ui/session-manager";
export default()=><div className="tidal-scope"><TidalSessionManager sessions={[{id:"example",device:"value",lastActive:"value"}]} title={"Demo"}/></div>;

API and props

TidalSessionManager.sessions (required)
ReadonlyArray<TidalSessionRecord>

Required sessions value accepted by this exported component.

TidalSessionManager.title (required)
ReactNode

Required title value accepted by this exported component.

TidalSessionManager.confirmation
ReactNode

Optional confirmation value accepted by this exported component.

TidalSessionManager.description
ReactNode

Optional description value accepted by this exported component.

TidalSessionManager.emptyContent
ReactNode

Optional empty content value accepted by this exported component.

TidalSessionManager.error
ReactNode

Optional error value accepted by this exported component.

TidalSessionManager.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalSessionManager.labels
Partial<{ sessions: string; current: string; active: string; lastActive: string; location: string; revoke: string; revoking: string; revokeOthers: string; revokingOthers: string; }> | undefined

Optional labels value accepted by this exported component.

TidalSessionManager.loading
boolean | undefined

Optional loading value accepted by this exported component.

TidalSessionManager.loadingContent
ReactNode

Optional loading content value accepted by this exported component.

TidalSessionManager.onRevokeOthersRequest
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the revoke others request interaction is proposed.

TidalSessionManager.onRevokeRequest
((session: TidalSessionRecord, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the revoke request interaction is proposed.

TidalSessionManager.otherSessionsButtonProps
SessionButtonProps | undefined

Optional other sessions button props value accepted by this exported component.

TidalSessionManager.otherSessionsButtonRef
Ref<HTMLButtonElement> | undefined

Optional other sessions button ref value accepted by this exported component.

TidalSessionManager.pendingSessionId
string | undefined

Optional pending session id value accepted by this exported component.

TidalSessionManager.revokingOthers
boolean | undefined

Optional revoking others value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas