component
Quick Reply Buttons
The stack of reply chips that hangs under a message. Sibling of the bubble, not a child.
Install
npx shadcn@latest add https://whatsapp-components.crafter.run/r/quick-reply-buttons.jsonWrites 5 files into your project, and installs clsx and tailwind-merge.
Preview
¿En qué te ayudo?
demos/quick-reply-buttons.tsx
import { MessageBubble } from "@/registry/whatsapp/message-bubble";
import { MessageGroup } from "@/registry/whatsapp/message-group";
import { MessageMeta } from "@/registry/whatsapp/message-meta";
import { QuickReplyButtons } from "@/registry/whatsapp/quick-reply-buttons";
export default function Demo() {
return (
<MessageGroup direction="in">
<MessageBubble
direction="in"
tail
meta={<MessageMeta timestamp={new Date(2025, 0, 6, 11, 6)} />}
>
¿En qué te ayudo?
</MessageBubble>
<QuickReplyButtons
direction="in"
actions={[
{ id: "size", label: "Ver tallas" },
{ id: "ship", label: "Costo de envío" },
{ id: "human", label: "Hablar con una persona" },
]}
/>
</MessageGroup>
);
}Props
Read from QuickReplyButtonsProps in the component source at build time.
| Prop | Type | Default |
|---|---|---|
actionsrequired | CtaAction[] | — |
className | string | — |
directionSide to align with. Matches the bubble it hangs under. | "in" | "out" | "in" |
onSelect | (action: CtaAction) => void | — |
Files
- registry/whatsapp/quick-reply-buttons.tsx
- registry/whatsapp/types.ts
- registry/whatsapp/cn.ts
- registry/whatsapp/whatsapp.css
- LICENSE