Browse components

component

Reply Quote

The quoted strip inside a bubble, with the accent bar and optional thumbnail.

Install

npx shadcn@latest add https://whatsapp-components.crafter.run/r/reply-quote.json

Writes 5 files into your project, and installs clsx and tailwind-merge.

Preview

Camila📷 Foto¡Ese mismo! Te mando la ficha 👇
Valeria · Agente IAPerfecto, lo despachamos hoy mismo 📦¡Gracias!
demos/reply-quote.tsx
import { MessageBubble } from "@/registry/whatsapp/message-bubble";
import { MessageMeta } from "@/registry/whatsapp/message-meta";
import { ReplyQuote } from "@/registry/whatsapp/reply-quote";

export default function Demo() {
  return (
    <div className="flex flex-col gap-3">
      <MessageBubble
        direction="out"
        meta={
          <MessageMeta timestamp={new Date(2025, 0, 6, 18, 14)} status="read" />
        }
      >
        <ReplyQuote
          author="Camila"
          preview="📷 Foto"
          direction="in"
          thumbnailUrl="/perfume.svg"
        />
        ¡Ese mismo! Te mando la ficha 👇
      </MessageBubble>

      <MessageBubble direction="in">
        <ReplyQuote
          author="Valeria · Agente IA"
          preview="Perfecto, lo despachamos hoy mismo 📦"
          direction="out"
        />
        ¡Gracias!
      </MessageBubble>
    </div>
  );
}

Props

Read from ReplyQuoteProps in the component source at build time.

ReplyQuoteProps
PropTypeDefault
authorrequiredstring—
previewrequiredstring—
classNamestring—
direction

Direction of the quoted message. Picks the accent colour.

MessageDirection"in"
thumbnailUrlstring—

Files

  • registry/whatsapp/reply-quote.tsx
  • registry/whatsapp/types.ts
  • registry/whatsapp/cn.ts
  • registry/whatsapp/whatsapp.css
  • LICENSE