component
Message Ticks
The delivery receipt: clock, one tick, two ticks, two blue ticks.
Install
npx shadcn@latest add https://whatsapp-components.crafter.run/r/message-ticks.jsonWrites 5 files into your project, and installs clsx and tailwind-merge.
Preview
pendingsentdeliveredreaddemos/message-ticks.tsx
import { MessageTicks } from "@/registry/whatsapp/message-ticks";
import type { MessageStatus } from "@/registry/whatsapp/types";
const STATUSES: MessageStatus[] = ["pending", "sent", "delivered", "read"];
export default function Demo() {
return (
<div className="flex flex-wrap items-center gap-6">
{STATUSES.map((status) => (
<span key={status} className="flex items-center gap-2">
<MessageTicks status={status} />
<code className="text-[13px] text-wa-text-muted">{status}</code>
</span>
))}
</div>
);
}Props
Read from MessageTicksProps in the component source at build time.
| Prop | Type | Default |
|---|---|---|
statusrequired | MessageStatus | — |
className | string | — |
label | string | — |
Files
- registry/whatsapp/message-ticks.tsx
- registry/whatsapp/types.ts
- registry/whatsapp/cn.ts
- registry/whatsapp/whatsapp.css
- LICENSE