Skip to content
Product block

Active Sessions & Devices

The screen people go looking for after losing a laptop. Sign out everywhere states what it does not reach — API keys keep working — locations are written as estimates, and this device is labelled rather than revocable by misclick.

302 lineslucide-reactAdded 27 Aug 2026
  • security
  • sessions
  • devices
  • sign out
  • account

What's included

  • components/settings-sessions.tsx
  • Needs lucide-react

Works with

  • React
  • Next.js
  • Tailwind CSS
  • TypeScript

npx hoverlab add settings-sessions

Or over MCP, from your editor's agent — no account needed.

License

Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.

Was this useful?

Start a page with this section — add more, order them, and leave with the page source.

Preview

Where you are signed in

One row per browser that holds a valid session. Locations are estimated from the IP address and are frequently wrong on mobile networks and VPNs — treat an unfamiliar city as worth checking, not as proof.

  • MacBook ProThis device

    Chrome 141 · macOS 16

    near Lisbon, PortugalActive now

    Use Sign out in the menu
  • iPhone 15

    Safari · iOS 19

    near Lisbon, Portugal20 minutes ago

  • Windows PC

    Edge 140 · Windows 11

    near Frankfurt, Germany2 days ago

    First sign-in from this country

  • iPad Air

    Safari · iPadOS 19

    near Lisbon, Portugal3 weeks ago

3 other sessions are active.

Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.

Source

components/settings-sessions.tsx
'use client'

/**
 * <SettingsSessions> — where you are signed in, and what ending it does.
 *
 * Settings had the layout, the profile form, team members, API keys and
 * the danger zone. The one screen a person actually goes looking for —
 * after losing a laptop, after a shared login, after an email saying
 * "new sign-in" — was missing.
 *
 * THE ONE THING THIS GETS RIGHT THAT MOST DO NOT
 *
 * "Sign out everywhere" is the button people press in a panic, and almost
 * nowhere says what it does not reach. API keys keep working. Personal
 * access tokens keep working. An attacker who exported data through the
 * API is entirely unaffected by every session on this list ending. So the
 * button carries that sentence, with a link to the place the tokens live,
 * because a security control that quietly under-delivers is worse than
 * none: it stops the search.
 *
 * LOCATION IS A GUESS, AND SAYS SO
 *
 * IP geolocation is city-accurate at best and routinely wrong on mobile
 * networks and VPNs. Printing "London, UK" as fact invites someone to
 * conclude they were not breached when they were, or the reverse. Every
 * location here is prefixed "near" and the panel says once where the
 * guess comes from.
 *
 * THIS DEVICE IS NOT REVOCABLE FROM HERE
 *
 * The current session has no "sign out" in the row — signing yourself out
 * from a list of other people's devices is a misclick with a real cost.
 * It is labelled, and the way to end it is the ordinary sign-out in the
 * menu, which is said rather than implied.
 *
 * ACCESSIBILITY: a real list with one heading per session; the revoke
 * buttons name the device they end, so a screen-reader run is "sign out
 * iPhone 15, near Lisbon" rather than six identical "sign out"; the
 * confirmation is `aria-live="polite"`.
 */

import * as React from 'react'
import {
  AlertTriangle,
  Check,
  Laptop,
  MapPin,
  Monitor,
  Smartphone,
  Tablet,
} from 'lucide-react'

export type SessionDevice = 'laptop' | 'phone' | 'tablet' | 'desktop'

export interface AppSession {
  id: string
  device: string
  deviceKind: SessionDevice
  browser: string
  /** Written as an approximation on purpose — see the note above. */
  location: string
  lastActive: string
  current?: boolean
  /** Set when something about this session is worth a second look. */
  flag?: string
}

export interface SettingsSessionsProps {
  sessions?: AppSession[]
  /** Where the tokens that survive "sign out everywhere" are managed. */
  tokensHref?: string
  className?: string
}

const ICONS: Record<SessionDevice, React.ComponentType<{ className?: string }>> = {
  laptop: Laptop,
  phone: Smartphone,
  tablet: Tablet,
  desktop: Monitor,
}

const DEFAULT_SESSIONS: AppSession[] = [
  {
    id: 's-1',
    device: 'MacBook Pro',
    deviceKind: 'laptop',
    browser: 'Chrome 141 · macOS 16',
    location: 'near Lisbon, Portugal',
    lastActive: 'Active now',
    current: true,
  },
  {
    id: 's-2',
    device: 'iPhone 15',
    deviceKind: 'phone',
    browser: 'Safari · iOS 19',
    location: 'near Lisbon, Portugal',
    lastActive: '20 minutes ago',
  },
  {
    id: 's-3',
    device: 'Windows PC',
    deviceKind: 'desktop',
    browser: 'Edge 140 · Windows 11',
    location: 'near Frankfurt, Germany',
    lastActive: '2 days ago',
    flag: 'First sign-in from this country',
  },
  {
    id: 's-4',
    device: 'iPad Air',
    deviceKind: 'tablet',
    browser: 'Safari · iPadOS 19',
    location: 'near Lisbon, Portugal',
    lastActive: '3 weeks ago',
  },
]

export function SettingsSessions({
  sessions = DEFAULT_SESSIONS,
  tokensHref = '#api-keys',
  className = '',
}: SettingsSessionsProps) {
  const [revoked, setRevoked] = React.useState<string[]>([])
  const [confirmingAll, setConfirmingAll] = React.useState(false)
  const [announcement, setAnnouncement] = React.useState('')

  const others = sessions.filter((s) => !s.current)
  const liveOthers = others.filter((s) => !revoked.includes(s.id))

  function revoke(session: AppSession) {
    setRevoked((r) => [...r, session.id])
    setAnnouncement(`${session.device} signed out. It will need the password again.`)
  }

  function revokeAll() {
    setRevoked(others.map((s) => s.id))
    setConfirmingAll(false)
    setAnnouncement(
      `${others.length} sessions signed out. This device is still signed in, and API keys are unaffected.`,
    )
  }

  return (
    <section className={`mx-auto w-full max-w-3xl px-4 py-16 sm:px-6 ${className}`}>
      <div className="rounded-2xl border border-border bg-card">
        <header className="border-b border-border px-5 py-4">
          <h2 className="text-base font-semibold text-foreground">Where you are signed in</h2>
          <p className="mt-1 text-xs leading-relaxed text-muted-foreground">
            One row per browser that holds a valid session. Locations are estimated
            from the IP address and are frequently wrong on mobile networks and
            VPNs — treat an unfamiliar city as worth checking, not as proof.
          </p>
        </header>

        <ul className="divide-y divide-border">
          {sessions.map((session) => {
            const Icon = ICONS[session.deviceKind]
            const isRevoked = revoked.includes(session.id)
            return (
              <li
                key={session.id}
                className={`flex flex-wrap items-start gap-3 px-5 py-4 ${
                  isRevoked ? 'opacity-60' : ''
                }`}
              >
                <span className="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
                  <Icon aria-hidden className="h-4.5 w-4.5" />
                </span>

                <div className="min-w-[11rem] flex-1">
                  {session.device ? (
                    <h3
                      data-stress-ignore
                      className="flex flex-wrap items-center gap-2 text-sm font-medium text-foreground"
                    >
                      <span className="min-w-0 break-words">{session.device}</span>
                      {session.current ? (
                        <span className="shrink-0 inline-flex items-center rounded-md bg-primary/10 px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-primary">
                          This device
                        </span>
                      ) : null}
                    </h3>
                  ) : null}
                  <p className="mt-0.5 text-xs text-muted-foreground">{session.browser}</p>
                  <p className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground">
                    <span className="inline-flex items-center gap-1">
                      <MapPin aria-hidden className="h-3 w-3" />
                      {session.location}
                    </span>
                    <span aria-hidden>·</span>
                    <span>{isRevoked ? 'Signed out just now' : session.lastActive}</span>
                  </p>

                  {/* A flag is a prompt to look, not an accusation. */}
                  {session.flag && !isRevoked ? (
                    <p className="mt-1.5 inline-flex items-center gap-1.5 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs text-amber-700 dark:text-amber-400">
                      <AlertTriangle aria-hidden className="h-3 w-3" />
                      {session.flag}
                    </p>
                  ) : null}
                </div>

                <div className="shrink-0">
                  {session.current ? (
                    /* Deliberately not revocable here — see the note above. */
                    <span className="text-xs text-muted-foreground">
                      Use Sign out in the menu
                    </span>
                  ) : isRevoked ? (
                    <span className="inline-flex items-center gap-1.5 text-xs font-medium text-muted-foreground">
                      <Check aria-hidden className="h-3.5 w-3.5" />
                      Signed out
                    </span>
                  ) : (
                    <button
                      type="button"
                      onClick={() => revoke(session)}
                      className="inline-flex h-8 items-center rounded-lg border border-border bg-background px-3 text-xs font-medium text-foreground transition hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
                    >
                      Sign out
                      <span className="sr-only">
                        {' '}
                        {session.device}, {session.location}
                      </span>
                    </button>
                  )}
                </div>
              </li>
            )
          })}
        </ul>

        <footer className="border-t border-border px-5 py-4">
          {confirmingAll ? (
            <div className="rounded-xl border border-border bg-muted/40 p-3">
              <p className="text-sm font-medium text-foreground">
                Sign out {liveOthers.length}{' '}
                {liveOthers.length === 1 ? 'other session' : 'other sessions'}?
              </p>
              {/*
                The sentence this component exists for. Everything below is
                what the button does NOT reach.
              */}
              <p className="mt-1 text-xs leading-relaxed text-muted-foreground">
                This device stays signed in. It does <strong>not</strong> revoke API
                keys or personal access tokens — anything using one keeps working
                until you revoke it in{' '}
                <a
                  href={tokensHref}
                  className="rounded font-medium text-primary underline underline-offset-2 transition hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
                >
                  API keys
                </a>
                .
              </p>
              <div className="mt-3 flex flex-wrap gap-2">
                <button
                  type="button"
                  onClick={revokeAll}
                  className="inline-flex h-8 items-center rounded-lg bg-destructive px-3 text-xs font-semibold text-destructive-foreground transition hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
                >
                  Sign out {liveOthers.length}
                </button>
                <button
                  type="button"
                  onClick={() => setConfirmingAll(false)}
                  className="inline-flex h-8 items-center rounded-lg px-2 text-xs font-medium text-muted-foreground transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
                >
                  Cancel
                </button>
              </div>
            </div>
          ) : (
            <div className="flex flex-wrap items-center gap-3">
              <p className="min-w-0 flex-1 text-xs text-muted-foreground">
                {liveOthers.length === 0
                  ? 'No other sessions are active.'
                  : `${liveOthers.length} other ${
                      liveOthers.length === 1 ? 'session is' : 'sessions are'
                    } active.`}
              </p>
              <button
                type="button"
                disabled={liveOthers.length === 0}
                onClick={() => setConfirmingAll(true)}
                className="inline-flex h-8 items-center rounded-lg border border-border bg-background px-3 text-xs font-medium text-foreground transition hover:bg-muted disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
              >
                Sign out everywhere else
              </button>
            </div>
          )}

          <p aria-live="polite" className="mt-2 text-xs text-muted-foreground">
            {announcement}
          </p>
        </footer>
      </div>
    </section>
  )
}

Before you paste

  • Styling is Tailwind utility classes on semantic tokens (bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.
  • Install: npm i lucide-react
  • Every prop has a default, so it renders standalone before you wire it up.

Where it goes

Drop it at components/settings-sessions.tsx and import it where you need the section:

import { SettingsSessions } from '@/components/settings-sessions'

Customize

1 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.

Props

Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.

PropTypeDefault
sessionsAppSession[]DEFAULT_SESSIONS
tokensHrefWhere the tokens that survive "sign out everywhere" are managed.string'#api-keys'
classNamestring''

Not using React?

The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.

This block is interactive. The markup below is its initial state with the event handlers stripped — you will need to re-wire the behaviour in your framework.

settings-sessions.html
<!--
  Active Sessions & Devices — markup from the Hoverlab catalog.

  This is the block rendered once to HTML and wrapped as a component
  file. It is not a port of the React source: the Tailwind classes carry
  the design, which is the part that took the work, and they are the same
  in every framework.

  This block is interactive in React and the handlers are NOT here.
  Buttons, toggles and menus render in their initial state and do
  nothing until you wire them up.
-->
<section class="mx-auto w-full max-w-3xl px-4 py-16 sm:px-6 ">
  <div class="rounded-2xl border border-border bg-card">
    <header class="border-b border-border px-5 py-4">
      <h2 class="text-base font-semibold text-foreground">Where you are signed in</h2>
      <p class="mt-1 text-xs leading-relaxed text-muted-foreground">One row per browser that holds a valid session. Locations are estimated from the IP address and are frequently wrong on mobile networks and VPNs — treat an unfamiliar city as worth checking, not as proof.</p>
    </header>
    <ul class="divide-y divide-border">
      <li class="flex flex-wrap items-start gap-3 px-5 py-4 ">
        <span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-laptop h-4.5 w-4.5" aria-hidden="true">
            <path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"></path>
            <path d="M20.054 15.987H3.946"></path>
          </svg>
        </span>
        <div class="min-w-[11rem] flex-1">
          <h3 data-stress-ignore="true" class="flex flex-wrap items-center gap-2 text-sm font-medium text-foreground">
            <span class="min-w-0 break-words">MacBook Pro</span>
            <span class="shrink-0 inline-flex items-center rounded-md bg-primary/10 px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-primary">This device</span>
          </h3>
          <p class="mt-0.5 text-xs text-muted-foreground">Chrome 141 · macOS 16</p>
          <p class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground">
            <span class="inline-flex items-center gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin h-3 w-3" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle></svg>near Lisbon, Portugal</span>
            <span aria-hidden="true">·</span>
            <span>Active now</span>
          </p>
        </div>
        <div class="shrink-0">
          <span class="text-xs text-muted-foreground">Use Sign out in the menu</span>
        </div>
      </li>
      <li class="flex flex-wrap items-start gap-3 px-5 py-4 ">
        <span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-smartphone h-4.5 w-4.5" aria-hidden="true">
            <rect width="14" height="20" x="5" y="2" rx="2" ry="2"></rect>
            <path d="M12 18h.01"></path>
          </svg>
        </span>
        <div class="min-w-[11rem] flex-1">
          <h3 data-stress-ignore="true" class="flex flex-wrap items-center gap-2 text-sm font-medium text-foreground">
            <span class="min-w-0 break-words">iPhone 15</span>
          </h3>
          <p class="mt-0.5 text-xs text-muted-foreground">Safari · iOS 19</p>
          <p class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground">
            <span class="inline-flex items-center gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin h-3 w-3" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle></svg>near Lisbon, Portugal</span>
            <span aria-hidden="true">·</span>
            <span>20 minutes ago</span>
          </p>
        </div>
        <div class="shrink-0">
          <button type="button" class="inline-flex h-8 items-center rounded-lg border border-border bg-background px-3 text-xs font-medium text-foreground transition hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Sign out<span class="sr-only"> iPhone 15, near Lisbon, Portugal</span></button>
        </div>
      </li>
      <li class="flex flex-wrap items-start gap-3 px-5 py-4 ">
        <span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-monitor h-4.5 w-4.5" aria-hidden="true">
            <rect width="20" height="14" x="2" y="3" rx="2"></rect>
            <line x1="8" x2="16" y1="21" y2="21"></line>
            <line x1="12" x2="12" y1="17" y2="21"></line>
          </svg>
        </span>
        <div class="min-w-[11rem] flex-1">
          <h3 data-stress-ignore="true" class="flex flex-wrap items-center gap-2 text-sm font-medium text-foreground">
            <span class="min-w-0 break-words">Windows PC</span>
          </h3>
          <p class="mt-0.5 text-xs text-muted-foreground">Edge 140 · Windows 11</p>
          <p class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground">
            <span class="inline-flex items-center gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin h-3 w-3" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle></svg>near Frankfurt, Germany</span>
            <span aria-hidden="true">·</span>
            <span>2 days ago</span>
          </p>
          <p class="mt-1.5 inline-flex items-center gap-1.5 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs text-amber-700 dark:text-amber-400"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-alert h-3 w-3" aria-hidden="true"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path></svg>First sign-in from this country</p>
        </div>
        <div class="shrink-0">
          <button type="button" class="inline-flex h-8 items-center rounded-lg border border-border bg-background px-3 text-xs font-medium text-foreground transition hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Sign out<span class="sr-only"> Windows PC, near Frankfurt, Germany</span></button>
        </div>
      </li>
      <li class="flex flex-wrap items-start gap-3 px-5 py-4 ">
        <span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-tablet h-4.5 w-4.5" aria-hidden="true">
            <rect width="16" height="20" x="4" y="2" rx="2" ry="2"></rect>
            <line x1="12" x2="12.01" y1="18" y2="18"></line>
          </svg>
        </span>
        <div class="min-w-[11rem] flex-1">
          <h3 data-stress-ignore="true" class="flex flex-wrap items-center gap-2 text-sm font-medium text-foreground">
            <span class="min-w-0 break-words">iPad Air</span>
          </h3>
          <p class="mt-0.5 text-xs text-muted-foreground">Safari · iPadOS 19</p>
          <p class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground">
            <span class="inline-flex items-center gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin h-3 w-3" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle></svg>near Lisbon, Portugal</span>
            <span aria-hidden="true">·</span>
            <span>3 weeks ago</span>
          </p>
        </div>
        <div class="shrink-0">
          <button type="button" class="inline-flex h-8 items-center rounded-lg border border-border bg-background px-3 text-xs font-medium text-foreground transition hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Sign out<span class="sr-only"> iPad Air, near Lisbon, Portugal</span></button>
        </div>
      </li>
    </ul>
    <footer class="border-t border-border px-5 py-4">
      <div class="flex flex-wrap items-center gap-3">
        <p class="min-w-0 flex-1 text-xs text-muted-foreground">3 other sessions are active.</p>
        <button type="button" class="inline-flex h-8 items-center rounded-lg border border-border bg-background px-3 text-xs font-medium text-foreground transition hover:bg-muted disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Sign out everywhere else</button>
      </div>
      <p aria-live="polite" class="mt-2 text-xs text-muted-foreground"></p>
    </footer>
  </div>
</section>
  • This is rendered HTML, not a translation of the React source. The Tailwind classes carry the design and work in any framework.
  • It is one frame: the component in its initial state, with no props applied beyond the defaults.
  • This block is interactive in React — toggles, menus or form state. None of that survives here; the markup is the closed/default state and the handlers are gone. Re-wire them in your own framework.
  • Requires Tailwind, and the design tokens the classes reference (bg-card, text-muted-foreground, and so on). The template ZIPs ship a globals.css that defines them.

What each framework gets across the whole catalog — effects convert properly; this rung is markup.

For AI

The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.

See the prompt

Used in these pages

Want the whole screen instead of this one section? Open a page and copy it entire.

7 more blocks in Settings

All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.

Browse Settings

Shipping one commercially

Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.

  • A commercial licence for everything in the catalog
  • Unlimited bundle exports, in Vue, Svelte and Tailwind
  • One payment — no subscription, nothing to renew
Pro — $79 once

More Settings blocks

View category
Open the full page for this block

Grouped Settings Layout

Sidebar-and-panel settings shell that becomes a horizontal scroller on mobile instead of collapsing into a select.

Settings119 lines1 dep
Open the full page for this block

Profile Form With Save Bar

Avatar, fields and a character counter, with a sticky save bar that only appears once something has genuinely changed.

Settings220 lines1 dep
Open the full page for this block

Team Members & Invites

Member list with role selects, pending invites shown inline, and the last owner locked so a workspace cannot be orphaned.

Settings200 lines1 dep
Open the full page for this block

API Key Management

Masked keys, a create flow that reveals the secret exactly once, and a revoke that confirms before it fires.

Settings226 lines1 dep
Open the full page for this block

Danger Zone

Destructive actions gated by typing the resource name exactly — the pattern GitHub and Stripe use, and for good reason.

Settings184 lines1 dep
Open the full page for this block

Notification Channel Matrix

Every event against every delivery channel in one grid, with column toggles and required rows that show the policy instead of a disabled checkbox.

Settings221 lines1 dep
Open the full page for this block

Audit Log

A compliance-grade trail with named actors, before and after values, IP addresses, and a stated retention window — plus a count of what the active filter is hiding.

Settings270 lines1 dep