Skip to content
Sign in
Computer useSign in handoffMenu

Sign in handoffPro

The pause where the human signs in and hands control back to the agent.

ProTake over, sign in, hand back: the relay line follows control.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/sign-in-handoff

Usage

tsx
import { SignInHandoff } from "@/components/ui/chatcn/pro/sign-in-handoff"

<SignInHandoff state={state} site="Tallyroom" url={loginUrl} onTakeOver={takeOver} onHandBack={handBack} />

A relay line shows who holds the browser: the agent, you, then the agent again. It pairs with the agent browser frame: map needed to paused, user to user and checking to agent.

Examples

States

ProEvery step of the handoff.

Props

PropTypeNotes
state"needed" | "user" | "checking" | "done" | "failed" | "skipped"
site, url, reasonWhich sign-in and why
waitingSincenumberLive wait time
account, nextStepShown once done
onTakeOver, onHandBack, onSkip() => void

Accessibility

  • The relay line is an ordered list with the current holder named.
  • State changes are announced politely.

Motion

  • The relay segment fills with scaleX, 280 ms, and is instant under reduced motion.