WhatsApp button

WhatsApp button is a neobrutalist React component from Cruise UI. "Chat on WhatsApp": opens wa.me with your number and a message filled in. Install it with npx shadcn@latest add @cruiseui/whatsapp-button.

Install

Terminal

npx shadcn@latest add @cruiseui/whatsapp-button

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

When to use it

When to use

Letting customers reach a business on WhatsApp (orders, support).

When not to

Where a WhatsApp chat isn't monitored.

Props

CruiseWhatsAppButton

PropTypeDefaultDescription
phonestring—The number to chat with, in any form (0801…, +234…).
message?string—Text to start the chat with (URL-encoded for you).
label?string"Chat on WhatsApp"—
tone?"success" | "default""default"—
className?string——

Accessibility

  • A real link, opening in a new tab (announced to screen readers).
  • Lucide's message-circle icon, decorative; the text says what it does.