Date Separator
wa-ui/date-separatorFreeComponent
WhatsApp-style centered date pill divider for separating messages by date.
Live preview
live · rendered by the registry
Rendered by wa-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.meta-cloud-api.site/r/date-separator.jsonSource
1"use client";23import * as React from "react";4import { cn } from "@/lib/utils";5import "@/components/ui/whatsapp/styles/whatsapp.css";67interface DateSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {8 label: string;9}1011const DateSeparator = React.forwardRef<HTMLDivElement, DateSeparatorProps>(12 ({ className, label, ...props }, ref) => {13 return (14 <div15 ref={ref}16 className={cn("flex items-center justify-center py-2", className)}17 {...props}18 >19 <span className="font-wa rounded-full bg-wa-bg px-3 py-1 text-[12.5px] leading-[20px] text-wa-text-secondary shadow-sm">20 {label}21 </span>22 </div>23 );24 }25);26DateSeparator.displayName = "DateSeparator";2728export { DateSeparator, type DateSeparatorProps };
Files it writes
More from wa-ui
All 29 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Action Buttonaction-button | wa-ui | Components | Free | 1 dep · 2 files | |
| Call Permissioncall-permission | wa-ui | Components | Free | 1 dep · 2 files | |
| Carousel Templatecarousel-template | wa-ui | Components | Free | 1 dep · 3 files | |
| Chat Bubblechat-bubble | wa-ui | Components | Free | no deps · 2 files | |
| Chat Headerchat-header | wa-ui | Components | Free | no deps · 2 files | |
| Chat List Itemchat-list-item | wa-ui | Components | Free | no deps · 2 files | |
| Chat Menuchat-menu | wa-ui | Components | Free | 1 dep · 2 files | |
| Contact Bubblecontact-bubble | wa-ui | Components | Free | 1 dep · 3 files |
