Inbox sweep (Pro)
ProIncluded in $99An approvals inbox that rewards clearing it, once, when you earn it.
On this page
ProApproved rows sweep out in green while the rest rise; the last one opens to a drawn check, a flick of pen strokes and the day's count.
Approving a row sweeps it out to the side in green while the rows below rise into its place. Approve the last one and the empty inbox opens: a check draws itself, a ring of short pen strokes flicks out round it, and All caught up arrives with the day's count rolling in.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { InboxSweep } from "@/components/ui/chatcn/pro/inbox-sweep"
<InboxSweep items={pending} onApprove={(id) => approve(id)} approvedToday={count} />Props
| Prop | Type | Notes |
|---|---|---|
items | { id, title, detail? }[] | |
onApprove | (id: string) => void | Called after the row has swept out |
approvedToday | number | For the empty state |
Accessibility
- All caught up is a status; each row's button is labelled Approve.
Motion
- Rows leave in 520 ms; the check draws 420 ms and the strokes flick out once. Reduced motion: rows go at once.