Join our Discord Community
Avatar/Square

React Avatar with Count Indicator

A rounded square avatar with red notification count badge for workspace updates, integration alerts, or pending items

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Count badges on square avatars mean different things than on circles—workspace updates, not personal messages. This React avatar adds a bg-red-500 notification count at top-right of rounded-lg squares, showing pending items per workspace, unread integration alerts, or team notifications. Built with shadcn/ui and Radix UI, the badge uses font-medium text-xs for readability. Perfect for workspace switchers showing activity across environments, integration dashboards highlighting failing sync counts, or multi-tenant interfaces where counts aggregate by organization.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/avatar-square-7.json
npx shadcn@latest add https://www.shadcn.io/registry/avatar-square-7.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/avatar-square-7.json
bunx shadcn@latest add https://www.shadcn.io/registry/avatar-square-7.json

Questions you might have