← Prompt Lab

Vital Sparkline Card

Interactive ECG trace with scrub-to-read vitals
MedTech · Data & Flows3 KB1 copy
SHARE
09 / PLAYGROUNDVital Sparkline Card
BRAND COLORS
Fullscreen ↗

A frosted clinical card with a live-scrolling ECG trace you can scrub with a finger or cursor to read heart-rate, SpO2, and rhythm at any point in the last 60 seconds. It turns dense patient telemetry into one calm, tactile gesture that works identically on phone touch and desktop pointer.

MedTechECGPointer ScrubFrosted GlassZero Deps
// Drop the standalone interactive-vital-sparkline.html into /public/effects/interactive-vital-sparkline.html
// Or copy the HTML/CSS/JS tab directly into your component — zero external dependencies.
export function InteractiveVitalSparklineEmbed() {
  return (
    <div className="relative min-h-[480px] w-full overflow-hidden rounded-2xl border border-white/10">
      <iframe
        src="/effects/interactive-vital-sparkline.html"
        title="Vital Sparkline Card"
        className="h-full min-h-[480px] w-full border-0"
        loading="lazy"
      />
    </div>
  )
}

WHY THIS WORKS IN PRODUCTION

  • Scrub an ECG trace to read HR, SpO2 and HRV at any moment
  • Pointer + touch share one handler; chips spring back on release
  • Frosted clinical card with teal/cyan accents on porcelain canvas
  • prefers-reduced-motion drops sway/glow, keeps scrub usable

DROP-IN SPECS // WEB & MOBILE FIT

UI SLOTInteractive & Data
BEST USE CASEMedTech & Health UI Component
IDEAL PLACEMENTDrop directly into section or mobile screen
BUNDLE SIZE3 KB
DEPENDENCIESZero (HTML/CSS/JS)
MOBILE / TOUCHMobile Friendly
GPU WEIGHTLight · 60fps