affectUI › Illustrations › Card illustrations

Ghosted Chat

Unanswered chat messages marked as read, with a thumbs-down reply on hover.

Free and open source (MIT). Install: npx shadcn@latest add https://www.affectui.com/r/ghosted-chat.json · Import from @/components/ui/ghosted-chat

When to use

  • A problem card about cold outreach that gets ignored or messages left on read
  • Bento grids and feature cards that need a small illustration above the text

When not to use

  • A real chat UI – the bubbles are a fixed, decorative scene
  • Very small sizes below ~220px wide, where the bubble text gets hard to read

Usage

import { GhostedChat } from "@/components/ui/ghosted-chat";

export function FeatureCard() {
  return (
    <article style={{ maxWidth: 360 }}>
      <GhostedChat />
      <h3>Card title</h3>
      <p>Short description of the problem or step.</p>
    </article>
  );
}

Props

NameTypeDefaultDescription
labelstring"A chat with three unanswered messages…"Accessible description of the illustration
classNamestringExtra class on the root, e.g. for width or margins

Accessibility

  • Exposed as one image with a descriptive label; the messages inside are hidden from screen readers
  • The hover reply is purely decorative, nothing needs to be reached with the keyboard

Responsive

  • Transparent background, so it sits on any light or dark surface
  • Laid out on a fixed 360 × 240 artboard and scaled to the width of its container with a ResizeObserver, so the bubbles never reflow
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19