Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA tab bar whose Inbox tab shows an unread count that reads aloud, updates as messages arrive or are read, caps at 99+ and announces new messages politely. Use this when a tab needs to show unread or pending counts that change while the app is open.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when a tab needs to show unread or pending counts that change while the app is open.
Do not use it for counts that never change or for badges that are decoration.
It composes button, @tealmac/tab-bar, which the CLI installs for you.
import { InboxTabBarBadges } from "@/components/inbox-tab-bar-badges"<div className="flex w-full max-w-sm flex-col gap-3">
<div className="flex gap-2">
<Button size="sm" variant="outline" onClick={() => setUnread((n) => n + 1)}>
New message
</Button>
<Button size="sm" variant="outline" onClick={() => setUnread(0)}>
Read all
</Button>
</div>
<InboxTabBarBadges unread={unread} tab={tab} onTabChange={setTab} />
</div>| Prop | Type | Default | Description |
|---|---|---|---|
unread | number | required | Unread message count. |
onSimulate | () => void | - | Demo hook to add a message. |
The pattern ships with a Testing Library test (inbox-tab-bar-badges.test.tsx) that drives it through roles and the keyboard.