About
A clinical shift handoff board with an acuity-sorted patient roster, weighted filters, an SBAR detail panel, abnormal vital highlighting, unit task checklists, follow-up flags, handoff notes, review progress and a sign-off gate.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Clinical Handoff to your project and fits it to your theme.
Code
How Clinical Handoff is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import { ClinicalHandoff, type HandoffPatient } from "@/components/ui/clinical-handoff";
const PATIENTS: HandoffPatient[] = [
{
id: "p-104",
bed: "Bed 4",
name: "Elena Marsh",
age: 68,
acuity: 2,
diagnosis: "Post-op recovery, day 1",
flags: ["Fall risk", "Allergy: penicillin"],
vitals: { hr: 92, bp: "138/84", temp: 37.4, spo2: 95, rr: 18 },
sbar: {
situation: "Stable after hip replacement, pain controlled with oral analgesia.",
background: "Admitted yesterday, no complications in theatre, tolerating fluids.",
assessment: "Wound dry, distal pulses intact, mild anaemia but no active bleeding.",
recommendation: "Mobilise with a frame at 06:00, repeat haemoglobin at 04:00, escalate if pain returns.",
},
tasks: [
{ id: "obs", label: "Four-hourly observations", done: true },
{ id: "mobilise", label: "Assist first mobilisation" },
{ id: "wound", label: "Check dressing at 06:00" },
],
note: "Daughter called twice this evening. Prefers updates after 08:00.",
},
{
id: "p-108",
bed: "Bed 8",
name: "Owen Pike",
age: 74,
acuity: 1,
diagnosis: "COPD exacerbation",
flags: ["Isolation", "Oxygen dependent"],
vitals: { hr: 108, bp: "148/90", temp: 38.1, spo2: 89, rr: 26 },
sbar: {
situation: "Increasing breathlessness overnight, saturations below target on 2 litres.",
background: "Known COPD, two admissions this year, current course of steroids day 2.",
assessment: "Coarse crackles at both bases, using accessory muscles, febrile.",
recommendation: "Increase to 3 litres via nasal cannula, repeat gases at 02:00, call the registrar if SpO₂ stays under 90%.",
},
tasks: [
{ id: "gases", label: "Repeat arterial gases" },
{ id: "o2", label: "Adjust oxygen target range" },
{ id: "steroids", label: "Give 22:00 steroids" },
],
note: "Anxious about discharge. Explained the plan twice and he settled.",
},
{
id: "p-112",
bed: "Bed 12",
name: "Sana Iqbal",
age: 51,
acuity: 3,
diagnosis: "Chest pain observation",
flags: [],
vitals: { hr: 76, bp: "124/78", temp: 36.8, spo2: 98, rr: 16 },
sbar: {
situation: "Chest pain resolved, awaiting the second troponin result.",
background: "No prior cardiac history, pain started after climbing stairs.",
assessment: "ECG unchanged, pain score now zero, comfortable at rest.",
recommendation: "Repeat troponin at 03:00, keep on telemetry, discharge planning after the morning round.",
},
tasks: [
{ id: "trop", label: "Second troponin at 03:00" },
{ id: "tele", label: "Confirm telemetry alarm limits" },
],
note: "",
},
{
id: "p-116",
bed: "Bed 16",
name: "Marcus Bell",
age: 39,
acuity: 4,
diagnosis: "Cellulitis, IV antibiotics",
flags: ["Allergy: latex"],
vitals: { hr: 68, bp: "118/72", temp: 37.1, spo2: 99, rr: 14 },
sbar: {
situation: "Responding well to antibiotics, redness settling at the margins.",
background: "Admitted two days ago, first dose of IV therapy completed without reaction.",
assessment: "Afebrile, limb swelling down, able to weight-bear.",
recommendation: "Next IV dose at 06:00, mark the erythema border, prepare for oral switch tomorrow.",
},
tasks: [
{ id: "iv", label: "Prepare 06:00 IV dose" },
{ id: "border", label: "Re-mark the redness border" },
{ id: "oral", label: "Ask team about oral switch" },
],
note: "Works outdoors, keen to be back by the weekend.",
},
];
export default function ClinicalHandoffDemo() {
return (
<main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<ClinicalHandoff
patients={PATIENTS}
ward="Ward 4B · Respiratory and surgical"
shiftFrom="Day shift"
shiftTo="Night shift"
outgoing="Nurse A. Doyle"
incoming="Nurse R. Mensah"
title="Evening to night handoff"
description="Review each patient, close the unit tasks, flag anything that cannot wait, then sign the shift over."
/>
</main>
);
}








