Did the new pricing block ship?
R
The yearly toggle looked great in review.
10:41Shipped this morning 🎉 It's live on the blocks page.
10:42 · ReadR
Installation
$ pnpm dlx shadcn@latest add @synccn/chatFirst time in this project? Connect synccn with one command.
Usage
import { ChatBubble, TypingIndicator } from "@/components/ui/chat";<ChatBubble from="me" time="10:42">Shipped!</ChatBubble>API reference
Generated from the component's TypeScript types, so it always matches the code.
ChatBubble
Message bubble. Consecutive messages from the same sender hide the repeated avatar.
PropTypeDescription
- from
"me" | "them"Default
"them"Which side the bubble sits on.
- name
stringSender name, used for the avatar.
- time
stringTime under the bubble.
- showAvatar
booleanDefault
trueHide for consecutive messages from the same sender.
- status
stringDelivery status, e.g. Read.
- children
React.ReactNodeContent to render.
TypingIndicator
Three bouncing dots shown while the other person is typing.
PropTypeDescription
- name
stringWho is typing.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Components
- Avatar for
Avatar
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label
More display
CardSurface with header, content and footer slots.BadgeSmall status label with an optional dot.AvatarImage with initials fallback, presence dot and stacked groups.KbdKeyboard key for shortcuts and hints.SeparatorHorizontal, vertical or labelled divider.AccordionExpanding sections with smooth height animation.