Session List

Active sessions list showing each device and location, marking the current device and giving other sessions a Revoke button. A React account security block.

src/registry/ui/session-list.tsx/r/session-list.json

Installation#

bash
npx shadcn@latest add @minidev/session-list

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/session-list.json

Usage#

tsx
import { SessionList } from "@/components/ui/session-list"

export function Example() {
  return <SessionList />
}

API reference#

SessionList props
PropTypeDefault
sessionsSession[]SAMPLE_SESSIONS
classNamestring-

Dependencies#

npm

React only

Built from

All settings page components