Browse components

block

WhatsApp Kit

Every WhatsApp chat component, the shared token themes and the message type model, in one command.

Install

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

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

Preview

demos/whatsapp-kit.tsx
import { ChatHeader } from "@/registry/whatsapp/chat-header";
import { ChatInput } from "@/registry/whatsapp/chat-input";
import { ChatWindow } from "@/registry/whatsapp/chat-window";
import { Conversation } from "@/registry/whatsapp/conversation";
import { MessageList } from "@/registry/whatsapp/message-list";
import { PhoneFrame } from "@/registry/whatsapp/phone-frame";
import { demoConversation } from "../demo-conversation";
import { renderProductLead } from "../render-product-lead";

export default function Demo() {
  return (
    <div className="flex justify-center">
      <PhoneFrame width={300} ratio={1.95}>
        <ChatWindow>
          <ChatHeader
            className="pt-9"
            name="Valeria · Agente IA"
            presence="online"
            presenceLabel="en línea"
          />
          <MessageList>
            <Conversation
              items={demoConversation}
              renderContent={renderProductLead}
            />
          </MessageList>
          <ChatInput placeholder="Escribe un mensaje" />
        </ChatWindow>
      </PhoneFrame>
    </div>
  );
}

Files

  • registry/whatsapp/cn.ts
  • registry/whatsapp/types.ts
  • registry/whatsapp/themes.ts
  • registry/whatsapp/whatsapp.css
  • registry/whatsapp/format-time.ts
  • registry/whatsapp/grouping.ts
  • registry/whatsapp/chat-window.tsx
  • registry/whatsapp/chat-header.tsx
  • registry/whatsapp/chat-avatar.tsx
  • registry/whatsapp/chat-background.tsx
  • registry/whatsapp/chat-input.tsx
  • registry/whatsapp/message-list.tsx
  • registry/whatsapp/message-group.tsx
  • registry/whatsapp/message-bubble.tsx
  • registry/whatsapp/message-meta.tsx
  • registry/whatsapp/message-ticks.tsx
  • registry/whatsapp/date-divider.tsx
  • registry/whatsapp/system-message.tsx
  • registry/whatsapp/typing-indicator.tsx
  • registry/whatsapp/phone-frame.tsx
  • registry/whatsapp/format-media.ts
  • registry/whatsapp/image-message.tsx
  • registry/whatsapp/audio-message.tsx
  • registry/whatsapp/voice-note.tsx
  • registry/whatsapp/document-message.tsx
  • registry/whatsapp/location-message.tsx
  • registry/whatsapp/reply-quote.tsx
  • registry/whatsapp/link-preview.tsx
  • registry/whatsapp/reactions.tsx
  • registry/whatsapp/conversation.tsx
  • registry/whatsapp/product-card.tsx
  • registry/whatsapp/quick-reply-buttons.tsx
  • registry/whatsapp/cta-button.tsx
  • registry/whatsapp/list-message.tsx
  • registry/whatsapp/poll.tsx
  • LICENSE